Accepting request 571082 from home:mslacken
- removed .la and .a files - moved the perl and python bindings to seperate packages - Needed by (FATE#324149) OBS-URL: https://build.opensuse.org/request/show/571082 OBS-URL: https://build.opensuse.org/package/show/network:cluster/genders?expand=0&rev=4
This commit is contained in:
parent
b556eb5d18
commit
97cddabdba
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 30 13:38:14 UTC 2018 - cgoll@suse.com
|
||||
|
||||
- removed .la and .a files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 30 11:34:06 UTC 2018 - cgoll@suse.com
|
||||
|
||||
- moved the perl and python bindings to seperate packages
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 28 00:18:51 UTC 2018 - eich@suse.com
|
||||
|
||||
@ -14,4 +24,5 @@ Sun Jan 28 00:18:51 UTC 2018 - eich@suse.com
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 8 11:07:09 UTC 2017 - cgoll@suse.com
|
||||
|
||||
- Needed by (FATE#324149)
|
||||
- intial commit if genders version 1.22
|
||||
|
49
genders.spec
49
genders.spec
@ -28,8 +28,6 @@ Source: https://github.com/chaos/genders/releases/download/genders-1-22-
|
||||
Patch1: Fix-Python-package-installation-use-root.patch
|
||||
Patch2: Remove-PERL_DESTDIR-use-DESTDIR-instead.patch
|
||||
Patch3: Remove-all-remains-of-EXTENSION_DESTDIR.patch
|
||||
Requires: perl-base
|
||||
Requires: python
|
||||
Url: https://github.com/chaos/genders
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
@ -60,11 +58,29 @@ genders API that is compatible with earlier releases of genders
|
||||
%package -n %{pname}-devel
|
||||
Summary: Headers and development files
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{pname}
|
||||
Requires: %{pname} = %{version}
|
||||
|
||||
%description -n %{pname}-devel
|
||||
genders headers and libraries files needed for development
|
||||
|
||||
%package -n python-%{pname}
|
||||
Summary: Python bindings for genders
|
||||
Group: Development/Languages/Perl
|
||||
Requires: %{pname} = %{version}
|
||||
Requires: python
|
||||
|
||||
%description -n python-%{pname}
|
||||
Necessary files for using genders with python
|
||||
|
||||
%package -n perl-%{pname}
|
||||
Summary: Python bindings for genders
|
||||
Group: Development/Languages/Python
|
||||
Requires: %{pname} = %{version}
|
||||
Requires: perl-base = %{perl_version}
|
||||
|
||||
%description -n perl-%{pname}
|
||||
Necessary files for using genders with perl
|
||||
|
||||
%{!?_with_perl_extensions: %{!?_without_perl_extensions: %global _with_perl_extensions --with-perl-extensions}}
|
||||
%{!?_with_python_extensions: %{!?_without_python_extensions: %global _with_python_extensions --with-python-extensions}}
|
||||
%{!?_with_cplusplus_extensions: %{!?_without_cplusplus_extensions: %global _with_cplusplus_extensions --with-cplusplus-extensions}}
|
||||
@ -113,6 +129,11 @@ find "$RPM_BUILD_ROOT" -name .packlist -exec sed -i '/BUILDROOT/d' {} +
|
||||
|
||||
for file in %{buildroot}%{_prefix}/lib/genders/*.pl; do grep '#!/usr/bin/perl' $file || sed -i '1s,^,#!/usr/bin/perl\n,' $file ;done
|
||||
|
||||
# remove .a files
|
||||
%if %{?_with_cplusplus_extensions:1}%{!?_with_cplusplus_extensions:0}
|
||||
rm -v %{buildroot}%{_libdir}/libgendersplusplus.la
|
||||
%endif
|
||||
rm -v %{buildroot}%{_libdir}/libgenders.la
|
||||
# turn off rpath check... causes failure on libgenders library
|
||||
# is a bug in perl-ExtUtils-MakeMaker
|
||||
export NO_BRP_CHECK_RPATH=true
|
||||
@ -130,18 +151,8 @@ export NO_BRP_CHECK_RPATH=true
|
||||
%{_mandir}/man3/libgenders*
|
||||
%{_bindir}/*
|
||||
%{_libdir}/libgenders.so.*
|
||||
%{_libdir}/libgenders.la
|
||||
%if %{?_with_perl_extensions:1}%{!?_with_perl_extensions:0}
|
||||
%{_mandir}/man3/Libgenders*
|
||||
%{_mandir}/man3/Genders*
|
||||
%{_perldir}/*
|
||||
%endif
|
||||
%if %{?_with_python_extensions:1}%{!?_with_python_extensions:0}
|
||||
%{_libdir}/python*
|
||||
%endif
|
||||
%if %{?_with_cplusplus_extensions:1}%{!?_with_cplusplus_extensions:0}
|
||||
%{_libdir}/libgendersplusplus.so.*
|
||||
%{_libdir}/libgendersplusplus.la
|
||||
%endif
|
||||
|
||||
%files -n %{pname}-compat
|
||||
@ -158,4 +169,16 @@ export NO_BRP_CHECK_RPATH=true
|
||||
%{_libdir}/libgendersplusplus.so
|
||||
%endif
|
||||
|
||||
%files -n python-%{pname}
|
||||
%if %{?_with_python_extensions:1}%{!?_with_python_extensions:0}
|
||||
%{_libdir}/python*
|
||||
%endif
|
||||
|
||||
%files -n perl-%{pname}
|
||||
%if %{?_with_perl_extensions:1}%{!?_with_perl_extensions:0}
|
||||
%{_mandir}/man3/Libgenders*
|
||||
%{_mandir}/man3/Genders*
|
||||
%{_perldir}/*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user