From a8790dd145024e896d4f13c6f418d2ae7d60f161 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Tue, 17 Jan 2017 09:44:44 -0200 Subject: [PATCH] Ajustes para empacotamento rpm. --- .gitignore | 7 ++++++- Makefile.in | 2 +- python-pw3270.spec | 67 ------------------------------------------------------------------- rpm/python-pw3270.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 74 insertions(+), 69 deletions(-) delete mode 100644 python-pw3270.spec create mode 100644 rpm/python-pw3270.spec diff --git a/.gitignore b/.gitignore index 5e7849f..4560c21 100644 --- a/.gitignore +++ b/.gitignore @@ -15,5 +15,10 @@ Makefile *.tar *.gz *.bz2 -rpm +rpm/BUILD +rpm/BUILDROOT +rpm/RPMS +rpm/SOURCES +rpm/SPECS +rpm/SRPMS diff --git a/Makefile.in b/Makefile.in index 0eb99cd..c09a19e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -215,7 +215,7 @@ $(SRCDIR): \ @cp *.in $(SRCDIR) @cp *.sh $(SRCDIR) @cp *.cbp $(SRCDIR) - @cp *.spec $(SRCDIR) + @cp rpm/*.spec $(SRCDIR) $(BINRLS)/$(LIBNAME): \ $(foreach SRC, $(basename $(SOURCES)), $(OBJRLS)/$(SRC).o) diff --git a/python-pw3270.spec b/python-pw3270.spec deleted file mode 100644 index cb464dc..0000000 --- a/python-pw3270.spec +++ /dev/null @@ -1,67 +0,0 @@ - -%define pythonextpath %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") - -Summary: Python Extension Module implementing tn3270 protocol -Name: python-pw3270 -Version: 5.1 -Release: 0 -License: GPL-2.0 -Source: %{name}-%{version}.tar.bz2 -URL: https://portal.softwarepublico.gov.br/social/pw3270/ -Group: Development/Libraries/Python - -BuildRoot: /var/tmp/%{name}-%{version} - -BuildRequires: autoconf >= 2.61 -BuildRequires: automake -BuildRequires: binutils -BuildRequires: coreutils -BuildRequires: gcc-c++ -BuildRequires: m4 -BuildRequires: pkgconfig -BuildRequires: pw3270-devel >= 5.1 - -BuildRequires: python -BuildRequires: pkgconfig(python) - -Requires: python -Requires: lib3270 >= 5.1 - -%description - -This is an extension for acessing 3270 hosts directly -from python apps. - -%prep - -%setup - -export CFLAGS="$RPM_OPT_FLAGS" -export CXXFLAGS="$RPM_OPT_FLAGS" -export FFLAGS="$RPM_OPT_FLAGS" - -aclocal -autoconf -%configure - -%build -make clean -make Release - -%install -rm -rf $RPM_BUILD_ROOT - -%makeinstall - -%fdupes $RPM_BUILD_ROOT - -%clean -rm -rf $RPM_BUILD_ROOT - -%files -%defattr(-,root,root) -%{pythonextpath}/py3270.so - -%changelog - - diff --git a/rpm/python-pw3270.spec b/rpm/python-pw3270.spec new file mode 100644 index 0000000..cb464dc --- /dev/null +++ b/rpm/python-pw3270.spec @@ -0,0 +1,67 @@ + +%define pythonextpath %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") + +Summary: Python Extension Module implementing tn3270 protocol +Name: python-pw3270 +Version: 5.1 +Release: 0 +License: GPL-2.0 +Source: %{name}-%{version}.tar.bz2 +URL: https://portal.softwarepublico.gov.br/social/pw3270/ +Group: Development/Libraries/Python + +BuildRoot: /var/tmp/%{name}-%{version} + +BuildRequires: autoconf >= 2.61 +BuildRequires: automake +BuildRequires: binutils +BuildRequires: coreutils +BuildRequires: gcc-c++ +BuildRequires: m4 +BuildRequires: pkgconfig +BuildRequires: pw3270-devel >= 5.1 + +BuildRequires: python +BuildRequires: pkgconfig(python) + +Requires: python +Requires: lib3270 >= 5.1 + +%description + +This is an extension for acessing 3270 hosts directly +from python apps. + +%prep + +%setup + +export CFLAGS="$RPM_OPT_FLAGS" +export CXXFLAGS="$RPM_OPT_FLAGS" +export FFLAGS="$RPM_OPT_FLAGS" + +aclocal +autoconf +%configure + +%build +make clean +make Release + +%install +rm -rf $RPM_BUILD_ROOT + +%makeinstall + +%fdupes $RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%{pythonextpath}/py3270.so + +%changelog + + -- libgit2 0.21.2