Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MasterPatricko
rpmdevtools
suse-specfile.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File suse-specfile.patch of Package rpmdevtools
--- rpmdevtools-9.6.orig/newspec.conf +++ rpmdevtools-9.6/newspec.conf @@ -9,7 +9,7 @@ # to support with the generated specfiles. See the -r option in the # rpmdev-newspec manual page for more information. # -#NEWSPEC_MIN_RPMVER= +NEWSPEC_MIN_RPMVER=1 # Source user configuration if [ -f "$HOME/.config/rpmdevtools/newspec.conf" ] ; then --- rpmdevtools-9.6.orig/spectemplate-R.spec +++ rpmdevtools-9.6/spectemplate-R.spec @@ -9,9 +9,11 @@ Version: Release: 1%{?dist} Summary: +Group: Applications/Engineering License: URL: http://cran.r-project.org/web/packages/%{packname}/ Source0: ftp://cran.r-project.org/pub/R/contrib/main/%{packname}_%{version}-%{packrel}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: BuildRequires: R-devel @@ -32,6 +34,7 @@ Requires: R-core %install +rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{rlibdir} %{_bindir}/R CMD INSTALL -l $RPM_BUILD_ROOT%{rlibdir} %{packname} test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so) @@ -42,6 +45,10 @@ rm -f $RPM_BUILD_ROOT%{rlibdir}/R.css %{_bindir}/R CMD check %{packname} +%clean +rm -rf $RPM_BUILD_ROOT + + %files %{!?_licensedir:%global license %%doc} %license add-license-file-here --- rpmdevtools-9.6.orig/spectemplate-dummy.spec +++ rpmdevtools-9.6/spectemplate-dummy.spec @@ -3,8 +3,10 @@ Version: 1.0 Release: 1%{?dist} Summary: Dummy test package +Group: Development/Debug License: Public Domain URL: http://fedoraproject.org/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description @@ -16,6 +18,11 @@ URL: http://fedoraproject.org %install +rm -rf $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT %files --- rpmdevtools-9.6.orig/spectemplate-lib.spec +++ rpmdevtools-9.6/spectemplate-lib.spec @@ -3,9 +3,11 @@ Version: Release: 1%{?dist} Summary: +Group: System Environment/Libraries License: URL: Source0: +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: Requires: @@ -15,6 +17,7 @@ Requires: %package devel Summary: Development files for %{name} +Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel @@ -32,11 +35,18 @@ make %{?_smp_mflags} %install +rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' -%{?ldconfig_scriptlets} +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig %files --- rpmdevtools-9.6.orig/spectemplate-minimal.spec +++ rpmdevtools-9.6/spectemplate-minimal.spec @@ -3,9 +3,11 @@ Version: Release: 1%{?dist} Summary: +Group: License: URL: Source0: +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: Requires: @@ -23,9 +25,14 @@ make %{?_smp_mflags} %install +rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT +%clean +rm -rf $RPM_BUILD_ROOT + + %files %{!?_licensedir:%global license %%doc} %license add-license-file-here --- rpmdevtools-9.6.orig/spectemplate-ocaml.spec +++ rpmdevtools-9.6/spectemplate-ocaml.spec @@ -10,9 +10,11 @@ Version: Release: 1%{?dist} Summary: +Group: Development/Libraries License: URL: Source0: +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ocaml >= 3.10.0 BuildRequires: ocaml-findlib-devel @@ -45,6 +47,7 @@ make opt %install +rm -rf $RPM_BUILD_ROOT # These rules work if the library uses 'ocamlfind install' to install itself. export DESTDIR=$RPM_BUILD_ROOT export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml @@ -55,6 +58,10 @@ strip $OCAMLFIND_DESTDIR/stublibs/dll*.s chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so +%clean +rm -rf $RPM_BUILD_ROOT + + %files %{!?_licensedir:%global license %%doc} %license LICENSE --- rpmdevtools-9.6.orig/spectemplate-perl.spec +++ rpmdevtools-9.6/spectemplate-perl.spec @@ -3,9 +3,11 @@ Version: Release: 1%{?dist} Summary: +Group: Development/Libraries License: URL: Source0: +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: BuildRequires: perl @@ -32,6 +34,7 @@ make %{?_smp_mflags} %install +rm -rf $RPM_BUILD_ROOT make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' # Remove the next line from noarch packages (unneeded) @@ -44,6 +47,10 @@ find $RPM_BUILD_ROOT -depth -type d -exe make test +%clean +rm -rf $RPM_BUILD_ROOT + + %files %{!?_licensedir:%global license %%doc} %license add-license-file-here --- rpmdevtools-9.6.orig/spectemplate-php-pear.spec +++ rpmdevtools-9.6/spectemplate-php-pear.spec @@ -6,9 +6,11 @@ Version: Release: 1%{?dist} Summary: +Group: License: URL: http://pear.php.net/package/%{pear_name} Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: php-pear >= 1:1.4.9-1.2 @@ -34,7 +36,7 @@ cd %{pear_name}-%{version} %install cd %{pear_name}-%{version} -rm -rf docdir +rm -rf $RPM_BUILD_ROOT docdir %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml # Move documentation @@ -49,6 +51,10 @@ mkdir -p $RPM_BUILD_ROOT%{pear_xmldir} install -pm 644 %{pear_name}.xml $RPM_BUILD_ROOT%{pear_xmldir} +%clean +rm -rf $RPM_BUILD_ROOT + + %post %{__pear} install --nodeps --soft --force --register-only \ %{pear_xmldir}/%{pear_name}.xml >/dev/null || : --- rpmdevtools-9.6.orig/spectemplate-ruby.spec +++ rpmdevtools-9.6/spectemplate-ruby.spec @@ -6,9 +6,12 @@ Version: Release: 1%{?dist} Summary: +Group: Development/Languages + License: URL: Source0: +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: BuildRequires: ruby ruby-devel @@ -31,11 +34,16 @@ export CFLAGS="$RPM_OPT_FLAGS" %install +rm -rf $RPM_BUILD_ROOT %check +%clean +rm -rf $RPM_BUILD_ROOT + + %files %{!?_licensedir:%global license %%doc} %license add-license-file-here --- rpmdevtools-9.6.orig/spectemplate-python.spec +++ rpmdevtools-9.6/spectemplate-python.spec @@ -1,70 +1,117 @@ -%{?!python3_pkgversion:%global python3_pkgversion 3} - -%global srcname ... +# sitelib for noarch packages, sitearch for others (remove the unneeded one) +%{!?__python2: %global __python2 %__python} +%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} + +%if 0%{?fedora} +%bcond_without python3 +%else +%bcond_with python3 +%endif -Name: python-%{srcname} +Name: Version: Release: 1%{?dist} Summary: + +Group: Development/Languages License: URL: Source0: +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: - -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-setuptools - -%{?python_enable_dependency_generator} +BuildRequires: python2-devel +%if %{with python3} +BuildRequires: python3-devel +%endif # with python3 %description -... -%package -n python%{python3_pkgversion}-%{srcname} -Summary: %{summary} -%{?python_provide:%python_provide python3-%{srcname}} +%if %{with python3} +%package -n +Summary: +Group: Development/Languages -%if %{undefined python_enable_dependency_generator} && %{undefined python_disable_dependency_generator} -# Put manual requires here: -Requires: python%{python3_pkgversion}-foo -%endif +%description -n -%description -n python%{python3_pkgversion}-%{srcname} -... +%endif # with python3 %prep -%autosetup -p1 -n %{srcname}-%{version} +%setup -q -c +mv %{name}-%{version} python2 + +%if %{with python3} +cp -a python2 python3 +%endif # with python3 %build -%py3_build +pushd python2 +# Remove CFLAGS=... for noarch packages (unneeded) +CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build +popd + +%if %{with python3} +pushd python3 +# Remove CFLAGS=... for noarch packages (unneeded) +CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build +popd +%endif # with python3 %install rm -rf $RPM_BUILD_ROOT -%py3_install +# Must do the python3 install first because the scripts in /usr/bin are +# overwritten with every setup.py install (and we want the python2 version +# to be the default for now). +%if %{with python3} +pushd python3 +%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +popd +%endif # with python3 + +pushd python2 +%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +popd %check -# use what your upstream is using +pushd python2 +%{__python2} setup.py test +popd + +%if %{with python3} +pushd python3 %{__python3} setup.py test -%{__python3} -m pytest -%{__python3} -m nose -... +popd +%endif + +%clean +rm -rf $RPM_BUILD_ROOT -%files -n python%{python3_pkgversion}-%{srcname} + +%files %{!?_licensedir:%global license %%doc} %license add-license-file-here %doc add-docs-here # For noarch packages: sitelib -%{python3_sitelib}/%{srcname}/ -%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/ +%{python2_sitelib}/* +# For arch-specific packages: sitearch +%{python2_sitearch}/* + +%if %{with python3} +%files -n +%license add-license-file-here +%doc add-docs-here +# For noarch packages: sitelib +%{python3_sitelib}/* # For arch-specific packages: sitearch -%{python3_sitearch}/%{srcname}/ -%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/ +%{python3_sitearch}/* +%endif # with python3 %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor