[canl-c/el5] Packaging changes for EPEL 5.
František Dvořák
valtri at fedoraproject.org
Tue Sep 24 18:59:10 UTC 2013
commit 1777469a4f9eceb4dbfeb593345afef73dc3ff38
Author: František Dvořák <valtri at civ.zcu.cz>
Date: Tue Sep 24 21:00:18 2013 +0200
Packaging changes for EPEL 5.
canl-c.spec | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/canl-c.spec b/canl-c.spec
index fbabbe8..e808e8d 100644
--- a/canl-c.spec
+++ b/canl-c.spec
@@ -3,9 +3,11 @@ Version: 2.1.2
Release: 1%{?dist}
Summary: EMI Common Authentication library - bindings for C
+Group: System Environment/Libraries
License: ASL 2.0
Url: http://www.eu-emi.eu
Source: http://scientific.zcu.cz/emi/emi.canl.c/%{name}-%{version}.tar.gz
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: bison
BuildRequires: c-ares-devel%{?_isa}
@@ -39,6 +41,7 @@ This is the C part of the EMI caNl -- the Common Authentication Library.
%package devel
Summary: Development files for EMI caNl
+Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: krb5-devel%{?_isa}
@@ -48,6 +51,7 @@ This package contains development libraries and header files for EMI caNl.
%package doc
Summary: API documentation for EMI caNl
+Group: Documentation
%if 0%{?fedora} >= 10 || 0%{?rhel} >= 6
BuildArch: noarch
%endif
@@ -58,6 +62,7 @@ This package contains API documentation for EMI caNl.
%package examples
Summary: Example programs of EMI caNl
+Group: System Environment/Base
Requires: %{name}%{?_isa} = %{version}-%{release}
%description examples
@@ -78,6 +83,7 @@ CFLAGS="%{?optflags}" LDFLAGS="%{?__global_ldflags}" make check
%install
+rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# in -doc subpackage
rm -f $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}/README
@@ -86,6 +92,10 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -rf {} \;
find $RPM_BUILD_ROOT -name '*.a' -exec rm -rf {} \;
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
%post -p /sbin/ldconfig
@@ -93,22 +103,29 @@ find $RPM_BUILD_ROOT -name '*.a' -exec rm -rf {} \;
%files
+%defattr(-,root,root)
%doc LICENSE README project/ChangeLog
%{_libdir}/libcanl_c.so.2
%{_libdir}/libcanl_c.so.2.*
%files devel
+%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/libcanl_c.so
%files doc
+%defattr(-,root,root)
%doc LICENSE canl.pdf
%files examples
+%defattr(-,root,root)
%{_bindir}/*
%changelog
+* Thu Sep 24 2013 František Dvořák <valtri at civ.zcu.cz> - 2.1.2-1
+- EPEL 5 packaging
+
* Thu Aug 08 2013 František Dvořák <valtri at civ.zcu.cz> - 2.1.2-1
- New upstream version
- Proper perl usage
More information about the scm-commits
mailing list