From f1411e98c3fdc7d31898dadd335d27029088ab893e5a78b453690a56fdae5094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 30 Oct 2014 14:33:46 +0000 Subject: [PATCH] Accepting request 258992 from home:pgajdos:apache2 OBS-URL: https://build.opensuse.org/request/show/258992 OBS-URL: https://build.opensuse.org/package/show/Apache/apache-rpm-macros?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + apache-rpm-macros.changes | 5 +++ apache-rpm-macros.spec | 73 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 102 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 apache-rpm-macros.changes create mode 100644 apache-rpm-macros.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/apache-rpm-macros.changes b/apache-rpm-macros.changes new file mode 100644 index 0000000..f4c5ea7 --- /dev/null +++ b/apache-rpm-macros.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Oct 17 12:11:26 UTC 2014 - pgajdos@suse.com + +- initial version of package 20141017 [bnc#673937] + diff --git a/apache-rpm-macros.spec b/apache-rpm-macros.spec new file mode 100644 index 0000000..a18f776 --- /dev/null +++ b/apache-rpm-macros.spec @@ -0,0 +1,73 @@ +# +# spec file for package apache-rpm-macros +# +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define ap_major 2 +%define ap_branch %(rpm -q --qf %%{version} apache%{ap_major} | sed 's:\(\..*\)\..*:\1:') +%define ap_pname apache%{ap_major} +%define ap_apxs %{_sbindir}/apxs%{ap_major} +%define ap_cflags %(%{ap_apxs} -q CFLAGS) +%define ap_includedir %(%{ap_apxs} -q INCLUDEDIR) +%define ap_libexecdir %(%{ap_apxs} -q LIBEXECDIR) +%define ap_localstatedir %(%{ap_apxs} -q LOCALSTATEDIR) +%define ap_mmn %(MMN=$(%{ap_apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN) +%define ap_serverroot %(%{ap_apxs} -q PREFIX) +%define ap_sysconfdir %(%{ap_apxs} -q SYSCONFDIR) +%define macros_dir %{_libexecdir}/rpm/macros.d +%define macros_file macros.apache +Name: apache-rpm-macros +Version: 20141017 +Release: 0 +Summary: Apache RPM Macros +License: Apache-2.0 +Group: Productivity/Networking/Web/Servers +Url: http://httpd.apache.org/ +BuildRequires: apache%{ap_major}-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%description +RPM Macros intended for Apache modules spec files. + +%prep + +%build +echo "%{ap_branch}" +cat << eom > %{macros_file} +%%apache_major %{ap_major} +%%apache_branch %{ap_branch} +%%apache_pname %{ap_pname} +%%apache_apxs %{ap_apxs} +%%apache_cflags %{ap_cflags} +%%apache_includedir %{ap_includedir} +%%apache_libexecdir %{ap_libexecdir} +%%apache_localstatedir %{ap_localstatedir} +%%apache_mmn %{ap_mmn} +%%apache_serverroot %{ap_serverroot} +%%apache_sysconfdir %{ap_sysconfdir} +eom + +%install +mkdir -p %{buildroot}%{macros_dir} +install -m 644 %{macros_file} %{buildroot}%{macros_dir} + +%files +%defattr(-,root,root) +%dir %{macros_dir} +%{macros_dir}/%{macros_file} + +%changelog