summaryrefslogtreecommitdiffstats
path: root/unicode/courier-unicode.spec.in
diff options
context:
space:
mode:
Diffstat (limited to 'unicode/courier-unicode.spec.in')
-rw-r--r--unicode/courier-unicode.spec.in37
1 files changed, 34 insertions, 3 deletions
diff --git a/unicode/courier-unicode.spec.in b/unicode/courier-unicode.spec.in
index f7d1eb6..440d6f1 100644
--- a/unicode/courier-unicode.spec.in
+++ b/unicode/courier-unicode.spec.in
@@ -1,5 +1,12 @@
Summary: Courier Unicode Library
+%if 0%{?compat:1}
+Name: courier-unicode%(echo @VERSION@ | tr -d '.')
+
+%define __brp_ldconfig %{nil}
+
+%else
Name: courier-unicode
+%endif
Version: @VERSION@
Release: 1%{?dist}%{?courier_release}
License: GPLv3
@@ -11,10 +18,14 @@ BuildRequires: perl
BuildRequires: gcc-c++
BuildRequires: %{__make}
+%if 0%{?compat:1}
+
+%else
%package devel
Summary: Courier Unicode Library development files
Group: Development/Libraries
Requires: %{name} = 0:%{version}-%{release}
+%endif
%description
This library implements several algorithms related to the Unicode
@@ -24,13 +35,17 @@ This package installs only the run-time libraries needed by applications that
use this library. Install the "courier-unicode-devel" package if you want
to develop new applications using this library.
+%if 0%{?compat:1}
+
+%else
%description devel
This package contains development files for the Courier Unicode Library.
Install this package if you want to develop applications that uses this
unicode library.
+%endif
%prep
-%setup -q
+%setup -q -n courier-unicode-@VERSION@
%configure
%build
%{__make} -s %{?_smp_mflags}
@@ -39,12 +54,27 @@ unicode library.
rm -rf $RPM_BUILD_ROOT
%{__make} install DESTDIR=$RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%if 0%{?compat:1}
+find $RPM_BUILD_ROOT%{_libdir} -type l -print | xargs rm -f
+rm -rf $RPM_BUILD_ROOT%{_includedir}
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
+rm -rf $RPM_BUILD_ROOT%{_datadir}/aclocal
+rm -rf $RPM_BUILD_ROOT%{_mandir}
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%if 0%{?compat:1}
+%files
+%defattr(-,root,root,-)
+%{_libdir}/*.so.*
+
+%else
%files
%defattr(-,root,root,-)
@@ -58,6 +88,7 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/*.la
%{_libdir}/*.a
%{_datadir}/aclocal/*.m4
+%endif
%changelog
* Sun Jan 12 2014 Sam Varshavchik <mrsam@octopus.email-scan.com> - 1.0