Commit 1cdf2b419bcd4de83c8826e5c3dd8183e88f832e
1 parent
51794d35
Exists in
master
and in
1 other branch
Updating deb and mingw packages.
Showing
4 changed files
with
36 additions
and
175 deletions
Show diff stats
debian/shlibs
rpm/_service
| @@ -11,53 +11,6 @@ | @@ -11,53 +11,6 @@ | ||
| 11 | <param name="versionformat">@PARENT_TAG@+git%cd</param> | 11 | <param name="versionformat">@PARENT_TAG@+git%cd</param> |
| 12 | <param name="scm">git</param> | 12 | <param name="scm">git</param> |
| 13 | </service> | 13 | </service> |
| 14 | - | ||
| 15 | - <!-- https://github.com/openSUSE/obs-service-extract_file --> | ||
| 16 | - <!-- service name="extract_file"> | ||
| 17 | - <param name="archive">*.tar</param> | ||
| 18 | - <param name="files">*/rpm/pw3270.spec</param> | ||
| 19 | - </service --> | ||
| 20 | - | ||
| 21 | - <!-- service name="extract_file"> | ||
| 22 | - <param name="archive">*.tar</param> | ||
| 23 | - <param name="files">*/debian/pw3270.dsc</param> | ||
| 24 | - </service --> | ||
| 25 | - | ||
| 26 | - <service name="extract_file"> | ||
| 27 | - <param name="archive">*.tar</param> | ||
| 28 | - <param name="files">*/debian/changelog</param> | ||
| 29 | - <param name="outfilename">debian.changelog</param> | ||
| 30 | - </service> | ||
| 31 | - | ||
| 32 | - <!-- service name="extract_file"> | ||
| 33 | - <param name="archive">*.tar</param> | ||
| 34 | - <param name="files">*/debian/control</param> | ||
| 35 | - <param name="outfilename">debian.control</param> | ||
| 36 | - </service --> | ||
| 37 | - | ||
| 38 | - <!-- service name="extract_file"> | ||
| 39 | - <param name="archive">*.tar</param> | ||
| 40 | - <param name="files">*/debian/rules</param> | ||
| 41 | - <param name="outfilename">debian.rules</param> | ||
| 42 | - </service --> | ||
| 43 | - | ||
| 44 | - <service name="extract_file"> | ||
| 45 | - <param name="archive">*.tar</param> | ||
| 46 | - <param name="files">*/debian/compat</param> | ||
| 47 | - <param name="outfilename">debian.compat</param> | ||
| 48 | - </service> | ||
| 49 | - | ||
| 50 | - <!-- service name="extract_file"> | ||
| 51 | - <param name="archive">*.tar</param> | ||
| 52 | - <param name="files">*/debian/shlibs</param> | ||
| 53 | - <param name="outfilename">debian.shlibs</param> | ||
| 54 | - </service --> | ||
| 55 | - | ||
| 56 | - <!-- service name="extract_file"> | ||
| 57 | - <param name="archive">*.tar</param> | ||
| 58 | - <param name="files">*/arch/PKGBUILD</param> | ||
| 59 | - <param name="outfilename">PKGBUILD</param> | ||
| 60 | - </service --> | ||
| 61 | 14 | ||
| 62 | <service name="recompress"> | 15 | <service name="recompress"> |
| 63 | <param name="file">*.tar</param> | 16 | <param name="file">*.tar</param> |
| @@ -0,0 +1,24 @@ | @@ -0,0 +1,24 @@ | ||
| 1 | +<services> | ||
| 2 | + | ||
| 3 | + <!-- https://github.com/openSUSE/obs-service-tar_scm/blob/master/tar_scm.py --> | ||
| 4 | + <service name="tar_scm"> | ||
| 5 | + | ||
| 6 | + <param name="url">https://github.com/PerryWerneck/pw3270.git</param> | ||
| 7 | + | ||
| 8 | + <param name="changesgenerate">enable</param> | ||
| 9 | + <param name="changesauthor">perry.werneck@gmail.com</param> | ||
| 10 | + | ||
| 11 | + <param name="versionformat">@PARENT_TAG@+git%cd</param> | ||
| 12 | + <param name="scm">git</param> | ||
| 13 | + <param name="revision">develop</param> | ||
| 14 | + | ||
| 15 | + </service> | ||
| 16 | + | ||
| 17 | + <service name="recompress"> | ||
| 18 | + <param name="file">*.tar</param> | ||
| 19 | + <param name="compression">xz</param> | ||
| 20 | + </service> | ||
| 21 | + | ||
| 22 | + <service name="set_version" /> | ||
| 23 | + | ||
| 24 | +</services> |
win/x86_64/mingw64-pw3270.spec
| @@ -16,9 +16,6 @@ | @@ -16,9 +16,6 @@ | ||
| 16 | # Please submit bugfixes or comments via http://bugs.opensuse.org/ | 16 | # Please submit bugfixes or comments via http://bugs.opensuse.org/ |
| 17 | # | 17 | # |
| 18 | 18 | ||
| 19 | -%define MAJOR_VERSION 5 | ||
| 20 | -%define MINOR_VERSION 1 | ||
| 21 | - | ||
| 22 | %define __strip %{_mingw64_strip} | 19 | %define __strip %{_mingw64_strip} |
| 23 | %define __objdump %{_mingw64_objdump} | 20 | %define __objdump %{_mingw64_objdump} |
| 24 | %define _use_internal_dependency_generator 0 | 21 | %define _use_internal_dependency_generator 0 |
| @@ -30,23 +27,15 @@ | @@ -30,23 +27,15 @@ | ||
| 30 | #---[ Packaging ]----------------------------------------------------------------------------------------------------- | 27 | #---[ Packaging ]----------------------------------------------------------------------------------------------------- |
| 31 | 28 | ||
| 32 | Name: mingw64-pw3270 | 29 | Name: mingw64-pw3270 |
| 33 | -Version: 5.1 | 30 | +Version: 5.4 |
| 34 | Release: 0 | 31 | Release: 0 |
| 35 | Summary: IBM 3270 Terminal emulator for GTK | 32 | Summary: IBM 3270 Terminal emulator for GTK |
| 36 | License: GPL-2.0 | 33 | License: GPL-2.0 |
| 37 | Group: System/X11/Terminals | 34 | Group: System/X11/Terminals |
| 38 | Url: http://www.softwarepublico.gov.br/dotlrn/clubs/pw3270 | 35 | Url: http://www.softwarepublico.gov.br/dotlrn/clubs/pw3270 |
| 39 | -Source: pw3270-%{version}.tar.bz2 | 36 | +Source: pw3270-%{version}.tar.xz |
| 40 | BuildRoot: %{_tmppath}/%{name}-%{version}-build | 37 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
| 41 | 38 | ||
| 42 | -Requires: mingw64-gtk3 | ||
| 43 | -Requires: mingw64-lib3270 = %{version} | ||
| 44 | -Requires: mingw64-hicolor-icon-theme | ||
| 45 | -Requires: mingw64(libpixbufloader-svg.dll) | ||
| 46 | - | ||
| 47 | -Provides: mingw64(lib:pw3270) = %{version} | ||
| 48 | -Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
| 49 | - | ||
| 50 | BuildRequires: autoconf | 39 | BuildRequires: autoconf |
| 51 | BuildRequires: automake | 40 | BuildRequires: automake |
| 52 | BuildRequires: inkscape | 41 | BuildRequires: inkscape |
| @@ -56,6 +45,7 @@ BuildRequires: pkgconfig(gtk+-3.0) | @@ -56,6 +45,7 @@ BuildRequires: pkgconfig(gtk+-3.0) | ||
| 56 | 45 | ||
| 57 | BuildRequires: desktop-file-utils | 46 | BuildRequires: desktop-file-utils |
| 58 | BuildRequires: optipng | 47 | BuildRequires: optipng |
| 48 | +BuildRequires: ImageMagick | ||
| 59 | 49 | ||
| 60 | BuildRequires: mingw64-cross-binutils | 50 | BuildRequires: mingw64-cross-binutils |
| 61 | BuildRequires: mingw64-cross-gcc | 51 | BuildRequires: mingw64-cross-gcc |
| @@ -67,147 +57,45 @@ BuildRequires: mingw64-zlib-devel | @@ -67,147 +57,45 @@ BuildRequires: mingw64-zlib-devel | ||
| 67 | BuildRequires: sed | 57 | BuildRequires: sed |
| 68 | 58 | ||
| 69 | BuildRequires: mingw64(pkg:gtk+-win32-3.0) | 59 | BuildRequires: mingw64(pkg:gtk+-win32-3.0) |
| 70 | - | ||
| 71 | -#--------------------------------------------------------------------------------------------------------------------- | 60 | +BuildRequires: mingw64(pkg:lib3270) |
| 61 | +BuildRequires: mingw64(pkg:libv3270) | ||
| 72 | 62 | ||
| 73 | %description | 63 | %description |
| 74 | Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | 64 | Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. |
| 75 | Based on the original x3270 code, pw3270 was originally created for Banco do Brasil, and is now used worldwide. | 65 | Based on the original x3270 code, pw3270 was originally created for Banco do Brasil, and is now used worldwide. |
| 76 | 66 | ||
| 77 | -#--[ lib3270 ]-------------------------------------------------------------------------------------------------------- | ||
| 78 | - | ||
| 79 | -%package -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
| 80 | -Summary: 3270 Communication library for %{name} | ||
| 81 | -Group: Development/Libraries/C and C++ | ||
| 82 | - | ||
| 83 | -Provides: mingw64-lib3270 = %{version} | ||
| 84 | -Provides: mingw64(lib:3270) = %{version} | ||
| 85 | - | ||
| 86 | -%description -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
| 87 | -Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | ||
| 88 | - | ||
| 89 | -This package contains the tn3270 protocol library for %{name} | ||
| 90 | - | ||
| 91 | -#--[ Devel ]---------------------------------------------------------------------------------------------------------- | ||
| 92 | - | ||
| 93 | -%package -n mingw64-lib3270-devel | ||
| 94 | -Summary: Devel for 3270 Communication library for %{name} | ||
| 95 | -Group: Development/Libraries/C and C++ | ||
| 96 | - | ||
| 97 | -Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
| 98 | -Provides: mingw64-lib3270-devel-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
| 99 | -Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
| 100 | - | ||
| 101 | -%description -n mingw64-lib3270-devel | ||
| 102 | -Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | ||
| 103 | -This package contains the development files for tn3270 protocol library for %{name} | ||
| 104 | - | ||
| 105 | -%package -n %{name}-devel | ||
| 106 | -Summary: Files required for development of %{name} plugins | ||
| 107 | -Group: Development/Libraries/C and C++ | ||
| 108 | - | ||
| 109 | -Requires: mingw64(lib:3270) = %{version} | ||
| 110 | -Requires: mingw64(lib:pw3270) = %{version} | ||
| 111 | - | ||
| 112 | -%description -n %{name}-devel | ||
| 113 | -Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | ||
| 114 | - | ||
| 115 | -This package contains the development files for %{name} | ||
| 116 | - | ||
| 117 | #---[ Build & Install ]----------------------------------------------------------------------------------------------- | 67 | #---[ Build & Install ]----------------------------------------------------------------------------------------------- |
| 118 | 68 | ||
| 119 | %prep | 69 | %prep |
| 120 | 70 | ||
| 121 | %setup -q -n pw3270-%{version} | 71 | %setup -q -n pw3270-%{version} |
| 122 | 72 | ||
| 123 | -echo "m4_define([SVN_REVISION], %{release})" > revision.m4 | ||
| 124 | -echo "m4_define([SVN_URL], http://softwarepublico.gov.br/gitlab/pw3270/principal.git)" >> revision.m4 | ||
| 125 | -echo "m4_define([APP_LEVEL], 0)" >> revision.m4 | ||
| 126 | - | ||
| 127 | -find . -exec touch {} \; | ||
| 128 | -aclocal | ||
| 129 | -autoconf | 73 | +NOCONFIGURE=1 ./autogen.sh |
| 130 | %{_mingw64_configure} | 74 | %{_mingw64_configure} |
| 131 | 75 | ||
| 132 | %build | 76 | %build |
| 133 | make clean | 77 | make clean |
| 134 | make all | 78 | make all |
| 135 | - | ||
| 136 | -%{_mingw64_strip} --strip-all .bin/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
| 137 | %{_mingw64_strip} --strip-all .bin/Release/*.exe | 79 | %{_mingw64_strip} --strip-all .bin/Release/*.exe |
| 138 | -%{_mingw64_strip} --strip-all .bin/Release/plugins/*.dll | ||
| 139 | 80 | ||
| 140 | %install | 81 | %install |
| 141 | -%{_mingw64_makeinstall} | ||
| 142 | - | ||
| 143 | -sed -i -e "s@^Version:.*@Version: %{version}@g" %{buildroot}%{_mingw64_libdir}/pkgconfig/lib3270.pc | ||
| 144 | -sed -i -e "s@^Version:.*@Version: %{version}@g" %{buildroot}%{_mingw64_libdir}/pkgconfig/pw3270.pc | ||
| 145 | - | ||
| 146 | -rm -f %{buildroot}%{_mingw64_datadir}/pw3270/ui/80javasamples.xml | ||
| 147 | -rm -f %{buildroot}%{_mingw64_datadir}/pw3270/ui/80rexx.xml | ||
| 148 | - | 82 | +%{make_install} |
| 83 | +%_mingw64_find_lang pw3270 langfiles | ||
| 149 | 84 | ||
| 150 | %clean | 85 | %clean |
| 151 | rm -rf %{buildroot} | 86 | rm -rf %{buildroot} |
| 152 | 87 | ||
| 153 | #---[ Files ]--------------------------------------------------------------------------------------------------------- | 88 | #---[ Files ]--------------------------------------------------------------------------------------------------------- |
| 154 | 89 | ||
| 155 | -%files | 90 | +%files -f langfiles |
| 156 | %defattr(-,root,root) | 91 | %defattr(-,root,root) |
| 157 | %doc AUTHORS LICENSE | 92 | %doc AUTHORS LICENSE |
| 158 | # %{_mingw64_mandir}/*/* | 93 | # %{_mingw64_mandir}/*/* |
| 159 | 94 | ||
| 160 | # Main application | 95 | # Main application |
| 161 | -%dir %{_mingw64_datadir}/pw3270 | ||
| 162 | -%dir %{_mingw64_datadir}/pw3270/ui | ||
| 163 | -%{_mingw64_bindir}/pw3270.exe | ||
| 164 | -%{_mingw64_libdir}/pw3270.dll | ||
| 165 | -%{_mingw64_libdir}/pw3270.dll.%{MAJOR_VERSION} | ||
| 166 | -%{_mingw64_libdir}/pw3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
| 167 | - | ||
| 168 | -%{_mingw64_datadir}/pw3270/ui/00default.xml | ||
| 169 | -%{_mingw64_datadir}/pw3270/ui/10functions.xml | ||
| 170 | -%{_mingw64_datadir}/pw3270/ui/10keypad.xml | ||
| 171 | -%{_mingw64_datadir}/pw3270/colors.conf | ||
| 172 | -%{_mingw64_datadir}/pw3270/pw3270.png | ||
| 173 | -%{_mingw64_datadir}/pw3270/pw3270-logo.png | ||
| 174 | - | ||
| 175 | -%dir %{_mingw64_datadir}/locale | ||
| 176 | -%dir %{_mingw64_datadir}/locale/pt_BR | ||
| 177 | -%dir %{_mingw64_datadir}/locale/pt_BR/LC_MESSAGES | ||
| 178 | -%{_mingw64_datadir}/locale/pt_BR/LC_MESSAGES/pw3270.mo | ||
| 179 | - | ||
| 180 | -%dir %{_mingw64_libdir}/pw3270-plugins | ||
| 181 | -%{_mingw64_libdir}/libhllapi.dll | ||
| 182 | -%{_mingw64_libdir}/pw3270-plugins/hllapi.dll | ||
| 183 | - | ||
| 184 | -%files -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
| 185 | -%defattr(-,root,root) | ||
| 186 | -%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
| 187 | -%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION} | ||
| 188 | -%{_mingw64_libdir}/lib3270.dll | ||
| 189 | - | ||
| 190 | -%files -n mingw64-lib3270-devel | ||
| 191 | -%defattr(-,root,root) | ||
| 192 | -%{_mingw64_includedir}/lib3270 | ||
| 193 | -%{_mingw64_includedir}/lib3270.h | ||
| 194 | -%{_mingw64_libdir}/pkgconfig/lib3270.pc | ||
| 195 | - | ||
| 196 | -%files -n %{name}-devel | ||
| 197 | -%defattr(-,root,root) | ||
| 198 | -%{_mingw64_includedir}/pw3270 | ||
| 199 | -%{_mingw64_includedir}/pw3270.h | ||
| 200 | -%{_mingw64_libdir}/pkgconfig/pw3270.pc | ||
| 201 | -%{_mingw64_datadir}/pw3270/ui/98trace.xml | ||
| 202 | -%{_mingw64_datadir}/pw3270/ui/99debug.xml | ||
| 203 | - | ||
| 204 | -%dir %{_mingw64_datadir}/pw3270/locale | ||
| 205 | -%{_mingw64_datadir}/pw3270/locale/Makefile | ||
| 206 | -%{_mingw64_datadir}/pw3270/locale/pt_BR.po | ||
| 207 | -%{_mingw64_datadir}/pw3270/locale/pw3270.pot | ||
| 208 | - | ||
| 209 | -%{_mingw64_includedir}/pw3270cpp.h | ||
| 210 | -%{_mingw64_libdir}/libpw3270cpp.a | 96 | +%{_mingw64_bindir}/pw3270.* |
| 97 | +%{_mingw64_datadir}/pw3270 | ||
| 98 | +%{_mingw64_datadir}/glib-2.0/schemas/*.xml | ||
| 211 | 99 | ||
| 212 | %changelog | 100 | %changelog |
| 213 | 101 |