Commit a8790dd145024e896d4f13c6f418d2ae7d60f161
1 parent
086fbfc4
Exists in
master
Ajustes para empacotamento rpm.
Showing
4 changed files
with
74 additions
and
69 deletions
Show diff stats
.gitignore
Makefile.in
| @@ -215,7 +215,7 @@ $(SRCDIR): \ | @@ -215,7 +215,7 @@ $(SRCDIR): \ | ||
| 215 | @cp *.in $(SRCDIR) | 215 | @cp *.in $(SRCDIR) |
| 216 | @cp *.sh $(SRCDIR) | 216 | @cp *.sh $(SRCDIR) |
| 217 | @cp *.cbp $(SRCDIR) | 217 | @cp *.cbp $(SRCDIR) |
| 218 | - @cp *.spec $(SRCDIR) | 218 | + @cp rpm/*.spec $(SRCDIR) |
| 219 | 219 | ||
| 220 | $(BINRLS)/$(LIBNAME): \ | 220 | $(BINRLS)/$(LIBNAME): \ |
| 221 | $(foreach SRC, $(basename $(SOURCES)), $(OBJRLS)/$(SRC).o) | 221 | $(foreach SRC, $(basename $(SOURCES)), $(OBJRLS)/$(SRC).o) |
python-pw3270.spec
| @@ -1,67 +0,0 @@ | @@ -1,67 +0,0 @@ | ||
| 1 | - | ||
| 2 | -%define pythonextpath %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") | ||
| 3 | - | ||
| 4 | -Summary: Python Extension Module implementing tn3270 protocol | ||
| 5 | -Name: python-pw3270 | ||
| 6 | -Version: 5.1 | ||
| 7 | -Release: 0 | ||
| 8 | -License: GPL-2.0 | ||
| 9 | -Source: %{name}-%{version}.tar.bz2 | ||
| 10 | -URL: https://portal.softwarepublico.gov.br/social/pw3270/ | ||
| 11 | -Group: Development/Libraries/Python | ||
| 12 | - | ||
| 13 | -BuildRoot: /var/tmp/%{name}-%{version} | ||
| 14 | - | ||
| 15 | -BuildRequires: autoconf >= 2.61 | ||
| 16 | -BuildRequires: automake | ||
| 17 | -BuildRequires: binutils | ||
| 18 | -BuildRequires: coreutils | ||
| 19 | -BuildRequires: gcc-c++ | ||
| 20 | -BuildRequires: m4 | ||
| 21 | -BuildRequires: pkgconfig | ||
| 22 | -BuildRequires: pw3270-devel >= 5.1 | ||
| 23 | - | ||
| 24 | -BuildRequires: python | ||
| 25 | -BuildRequires: pkgconfig(python) | ||
| 26 | - | ||
| 27 | -Requires: python | ||
| 28 | -Requires: lib3270 >= 5.1 | ||
| 29 | - | ||
| 30 | -%description | ||
| 31 | - | ||
| 32 | -This is an extension for acessing 3270 hosts directly | ||
| 33 | -from python apps. | ||
| 34 | - | ||
| 35 | -%prep | ||
| 36 | - | ||
| 37 | -%setup | ||
| 38 | - | ||
| 39 | -export CFLAGS="$RPM_OPT_FLAGS" | ||
| 40 | -export CXXFLAGS="$RPM_OPT_FLAGS" | ||
| 41 | -export FFLAGS="$RPM_OPT_FLAGS" | ||
| 42 | - | ||
| 43 | -aclocal | ||
| 44 | -autoconf | ||
| 45 | -%configure | ||
| 46 | - | ||
| 47 | -%build | ||
| 48 | -make clean | ||
| 49 | -make Release | ||
| 50 | - | ||
| 51 | -%install | ||
| 52 | -rm -rf $RPM_BUILD_ROOT | ||
| 53 | - | ||
| 54 | -%makeinstall | ||
| 55 | - | ||
| 56 | -%fdupes $RPM_BUILD_ROOT | ||
| 57 | - | ||
| 58 | -%clean | ||
| 59 | -rm -rf $RPM_BUILD_ROOT | ||
| 60 | - | ||
| 61 | -%files | ||
| 62 | -%defattr(-,root,root) | ||
| 63 | -%{pythonextpath}/py3270.so | ||
| 64 | - | ||
| 65 | -%changelog | ||
| 66 | - | ||
| 67 | - |
| @@ -0,0 +1,67 @@ | @@ -0,0 +1,67 @@ | ||
| 1 | + | ||
| 2 | +%define pythonextpath %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") | ||
| 3 | + | ||
| 4 | +Summary: Python Extension Module implementing tn3270 protocol | ||
| 5 | +Name: python-pw3270 | ||
| 6 | +Version: 5.1 | ||
| 7 | +Release: 0 | ||
| 8 | +License: GPL-2.0 | ||
| 9 | +Source: %{name}-%{version}.tar.bz2 | ||
| 10 | +URL: https://portal.softwarepublico.gov.br/social/pw3270/ | ||
| 11 | +Group: Development/Libraries/Python | ||
| 12 | + | ||
| 13 | +BuildRoot: /var/tmp/%{name}-%{version} | ||
| 14 | + | ||
| 15 | +BuildRequires: autoconf >= 2.61 | ||
| 16 | +BuildRequires: automake | ||
| 17 | +BuildRequires: binutils | ||
| 18 | +BuildRequires: coreutils | ||
| 19 | +BuildRequires: gcc-c++ | ||
| 20 | +BuildRequires: m4 | ||
| 21 | +BuildRequires: pkgconfig | ||
| 22 | +BuildRequires: pw3270-devel >= 5.1 | ||
| 23 | + | ||
| 24 | +BuildRequires: python | ||
| 25 | +BuildRequires: pkgconfig(python) | ||
| 26 | + | ||
| 27 | +Requires: python | ||
| 28 | +Requires: lib3270 >= 5.1 | ||
| 29 | + | ||
| 30 | +%description | ||
| 31 | + | ||
| 32 | +This is an extension for acessing 3270 hosts directly | ||
| 33 | +from python apps. | ||
| 34 | + | ||
| 35 | +%prep | ||
| 36 | + | ||
| 37 | +%setup | ||
| 38 | + | ||
| 39 | +export CFLAGS="$RPM_OPT_FLAGS" | ||
| 40 | +export CXXFLAGS="$RPM_OPT_FLAGS" | ||
| 41 | +export FFLAGS="$RPM_OPT_FLAGS" | ||
| 42 | + | ||
| 43 | +aclocal | ||
| 44 | +autoconf | ||
| 45 | +%configure | ||
| 46 | + | ||
| 47 | +%build | ||
| 48 | +make clean | ||
| 49 | +make Release | ||
| 50 | + | ||
| 51 | +%install | ||
| 52 | +rm -rf $RPM_BUILD_ROOT | ||
| 53 | + | ||
| 54 | +%makeinstall | ||
| 55 | + | ||
| 56 | +%fdupes $RPM_BUILD_ROOT | ||
| 57 | + | ||
| 58 | +%clean | ||
| 59 | +rm -rf $RPM_BUILD_ROOT | ||
| 60 | + | ||
| 61 | +%files | ||
| 62 | +%defattr(-,root,root) | ||
| 63 | +%{pythonextpath}/py3270.so | ||
| 64 | + | ||
| 65 | +%changelog | ||
| 66 | + | ||
| 67 | + |