[opensuse-buildservice] spec File für Centos
Hallo Liste, Eine Anfänger Frage. ich würde gerne ein Test File Bauen für CentOS 7 Das funktioniert auch soweit aber ;-)..... Da es für Cento 7 ist würde ich gerne das "el7" im rpm file haben, etwa so mod_nss-1.0.14.el7_xx.x86_64.rpm damit man es leichter zuordnen kann ich bekomme aber nur ein mod_nss-1.0.14-6.1.x86_64.rpm wo ist da der Hund begraben, ich hänge mal das spec File an. // Name: mod_nss Version: 1.0.14 Release: 1%{?dist} Summary: SSL/TLS module for the Apache HTTP server Group: System Environment/Daemons License: ASL 2.0 URL: https://fedorahosted.org/mod_nss/ Source: http://fedorahosted.org/released/mod_nss/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: nspr-devel >= 4.9.2, nss-devel >= 3.14.0.0 BuildRequires: httpd-devel, apr-devel, apr-util-devel BuildRequires: pkgconfig BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool # Needed for make check BuildRequires: openssl BuildRequires: python-nose BuildRequires: python-requests # BuildRequires: python-ndg_httpsclient Requires: httpd-mmn = %{_httpd_mmn} Requires(post): httpd, nss-tools Requires: nss%{?_isa} >= 3.14.0.0 # Although the following change reverses the desire of Bugzilla Bug #601939, it # was provided to suppress the dangling symlink warning of Bugzilla Bug #906089 # as exposed via 'rpmlint'. Requires: %{_libdir}/libnssckbi.so # Change configuration to not conflict with mod_ssl Patch1: mod_nss-conf.patch # Generate a password-less NSS database Patch2: mod_nss-gencert.patch %description The mod_nss module provides strong cryptography for the Apache Web server via the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols using the Network Security Services (NSS) security library. %prep %setup -q %patch1 -p1 -b .conf %patch2 -p1 -b .gencert # Touch expression parser sources to prevent regenerating it touch nss_expr_*.[chyl] %build CFLAGS="$RPM_OPT_FLAGS" APXS=%{_httpd_apxs} export CFLAGS APXS NSPR_INCLUDE_DIR=`/usr/bin/pkg-config --variable=includedir nspr` NSPR_LIB_DIR=`/usr/bin/pkg-config --variable=libdir nspr` NSS_INCLUDE_DIR=`/usr/bin/pkg-config --variable=includedir nss` NSS_LIB_DIR=`/usr/bin/pkg-config --variable=libdir nss` NSS_BIN=`/usr/bin/pkg-config --variable=exec_prefix nss` autoreconf -i -f %configure \ --with-nss-lib=$NSS_LIB_DIR \ --with-nss-inc=$NSS_INCLUDE_DIR \ --with-nspr-lib=$NSPR_LIB_DIR \ --with-nspr-inc=$NSPR_INCLUDE_DIR \ --with-apr-config --enable-ecc make %{?_smp_mflags} all %install # The install target of the Makefile isn't used because that uses apxs # which tries to enable the module in the build host httpd instead of in # the build root. rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf mkdir -p $RPM_BUILD_ROOT%{_httpd_confdir} mkdir -p $RPM_BUILD_ROOT%{_libdir}/httpd/modules mkdir -p $RPM_BUILD_ROOT%{_libexecdir} mkdir -p $RPM_BUILD_ROOT%{_sbindir} mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/alias mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8 %if "%{_httpd_modconfdir}" != "%{_httpd_confdir}" # httpd >= 2.4.x mkdir -p $RPM_BUILD_ROOT%{_httpd_modconfdir} sed -n /^LoadModule/p nss.conf > 10-nss.conf sed -i /^LoadModule/d nss.conf install -m 644 10-nss.conf $RPM_BUILD_ROOT%{_httpd_modconfdir} %endif install -m 644 gencert.8 $RPM_BUILD_ROOT%{_mandir}/man8/ install -m 644 nss_pcache.8 $RPM_BUILD_ROOT%{_mandir}/man8/ install -m 644 nss.conf $RPM_BUILD_ROOT%{_httpd_confdir} install -m 755 .libs/libmodnss.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules/ install -m 755 nss_pcache $RPM_BUILD_ROOT%{_libexecdir}/ # Provide a compatibility link to prevent disruption of customized deployments. # # NOTE: This link may be deprecated in a future release of 'mod_nss'. # ln -s %{_libexecdir}/nss_pcache $RPM_BUILD_ROOT%{_sbindir}/nss_pcache install -m 755 gencert $RPM_BUILD_ROOT%{_sbindir}/ ln -s ../../../%{_libdir}/libnssckbi.so $RPM_BUILD_ROOT%{_sysconfdir}/httpd/alias/ touch $RPM_BUILD_ROOT%{_sysconfdir}/httpd/alias/secmod.db touch $RPM_BUILD_ROOT%{_sysconfdir}/httpd/alias/cert8.db touch $RPM_BUILD_ROOT%{_sysconfdir}/httpd/alias/key3.db touch $RPM_BUILD_ROOT%{_sysconfdir}/httpd/alias/install.log perl -pi -e "s:$NSS_LIB_DIR:$NSS_BIN:" $RPM_BUILD_ROOT%{_sbindir}/gencert %check make check %clean rm -rf $RPM_BUILD_ROOT %post umask 077 if [ "$1" -eq 1 ] ; then if [ ! -e %{_sysconfdir}/httpd/alias/key3.db ]; then %{_sbindir}/gencert %{_sysconfdir}/httpd/alias > %{_sysconfdir}/httpd/alias/install.log 2>&1 echo "" echo "%{name} certificate database generated." echo "" fi # Make sure that the database ownership is setup properly. /bin/find %{_sysconfdir}/httpd/alias -user root -name "*.db" - exec /bin/chgrp apache {} \; /bin/find %{_sysconfdir}/httpd/alias -user root -name "*.db" - exec /bin/chmod g+r {} \; fi %files %defattr(-,root,root,-) %doc README LICENSE docs/mod_nss.html %{_mandir}/man8/* %config(noreplace) %{_httpd_confdir}/nss.conf %if "%{_httpd_modconfdir}" != "%{_httpd_confdir}" %config(noreplace) %{_httpd_modconfdir}/10-nss.conf %endif %{_libdir}/httpd/modules/libmodnss.so %dir %{_sysconfdir}/httpd/alias/ %ghost %attr(0640,root,apache) %config(noreplace) %{_sysconfdir}/httpd/alias/secmod.db %ghost %attr(0640,root,apache) %config(noreplace) %{_sysconfdir}/httpd/alias/cert8.db %ghost %attr(0640,root,apache) %config(noreplace) %{_sysconfdir}/httpd/alias/key3.db %ghost %config(noreplace) %{_sysconfdir}/httpd/alias/install.log %{_sysconfdir}/httpd/alias/libnssckbi.so %{_libexecdir}/nss_pcache %{_sbindir}/nss_pcache %{_sbindir}/gencert // Danke für die Hilfe, -- mit freundlichen Grüßen / best regards, Günther J. Niederwimmer -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 08/15/2016 04:15 PM, Günther J. Niederwimmer wrote:
Da es für Cento 7 ist würde ich gerne das "el7" im rpm file haben, etwa so mod_nss-1.0.14.el7_xx.x86_64.rpm
See https://en.opensuse.org/openSUSE:Build_Service_Tips_and_Tricks#How_to_contro... https://en.opensuse.org/openSUSE:Build_Service_prjconf#Release Andreas -- Andreas Stieger <astieger@suse.com> Project Manager Security SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Am 15.08.2016 um 16:15 schrieb Günther J. Niederwimmer:
Hallo Liste, Eine Anfänger Frage.
ich würde gerne ein Test File Bauen für CentOS 7 Das funktioniert auch soweit aber ;-).....
Da es für Cento 7 ist würde ich gerne das "el7" im rpm file haben, etwa so mod_nss-1.0.14.el7_xx.x86_64.rpm
damit man es leichter zuordnen kann
ich bekomme aber nur ein mod_nss-1.0.14-6.1.x86_64.rpm
Du mußt deine 'project conf' bearbeiten. z.B. so: osc meta -e prjconf home:computersalat (das wäre nun mein home Prj) (oder über die webui) darin kannst du folgendes sehen: Release: <CI_CNT>.<B_CNT>.CS das würde in deinem konkreten Bsp. zu folgendem Ergebnis führen: mod_nss-1.0.14-6.1.CS.x86_64.rpm du müßtest nun: Release: <CI_CNT>.<B_CNT>.el7 verwenden, um mod_nss-1.0.14-6.1.el7.x86_64.rpm zu erhalten. -- Christian ---------------------------------------------------- - Please do not 'CC' me on list mails. Just reply to the list :) ---------------------------------------------------- Der ultimative shop für Sportbekleidung und Zubehör http://www.sc24.de ---------------------------------------------------- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Am 15.08.2016 um 16:43 schrieb Christian:
Am 15.08.2016 um 16:15 schrieb Günther J. Niederwimmer:
Hallo Liste, Eine Anfänger Frage.
[...]
Du mußt deine 'project conf' bearbeiten. z.B. so: osc meta -e prjconf home:computersalat (das wäre nun mein home Prj) (oder über die webui)
darin kannst du folgendes sehen: Release: <CI_CNT>.<B_CNT>.CS
I use the following in my config to achieve that: # append '.el6', '.el6.centos', etc to rpm file names for Redhat/CentOS et al. Release: <CI_CNT>.<B_CNT>%%{?dist} Martin -- A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?
| Martin Weber | Razorcat Development GmbH | Witzlebenplatz 4 fon: +49-(30)-536 357 46 | 14057 Berlin fax: +49-(30)-536 357 60 | |-------------------------------------------- | Geschäftsführer: Michael Wittner | Sitz der Gesellschaft: Berlin | Amtsgericht: Berlin, HRB 65326 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (4)
-
Andreas Stieger
-
Christian
-
Günther J. Niederwimmer
-
Martin Weber