Logoj0ke.net Open Build Service > Projects > internetx > eventlog > Changes
Sign Up | Log In

Changes of Revision 2

[-] Changed eventlog.spec
x
 
1
@@ -1,18 +1,25 @@
2
+%define    lib libevtlog
3
+%define soname 0
4
+%define libname    %{lib}%{soname}
5
+%define pkgname eventlog
6
+
7
 %define libdir /%{_lib}
8
 
9
-Name: eventlog
10
+Name:   %{libname}
11
 Version: 0.2.7
12
-Release: 1%{?dist}
13
+Release: 1
14
 Summary: Syslog-ng v2 support library
15
 
16
 Group: System Environment/Libraries
17
 License: BSD
18
 Url: http://www.balabit.com/products/syslog-ng/
19
-Source:  http://www.balabit.com/downloads/files/syslog-ng/sources/2.0/src/%{name}-%{version}.tar.gz
20
+Source:  http://www.balabit.com/downloads/files/syslog-ng/sources/2.0/src/%{pkgname}-%{version}.tar.bz2
21
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
22
 
23
 Requires(post): /sbin/ldconfig
24
 Requires(postun): /sbin/ldconfig
25
+Obsoletes: %{pkgname}
26
+Provides:  %{pkgname} = %{version}
27
 
28
 %description
29
 The EventLog library aims to be a replacement of the simple syslog() API
30
@@ -26,12 +33,14 @@
31
 This package is the runtime part of the library.
32
 
33
 
34
-%package devel
35
+%package -n %{lib}-devel
36
 Summary: Syslog-ng v2 support library development files
37
 Group: Development/Libraries
38
 Requires: %{name} = %{version}-%{release}
39
+Obsoletes: %{pkgname}-devel
40
+Provides:  %{pkgname}-devel = %{version}
41
 
42
-%description devel
43
+%description -n %{lib}-devel
44
 The EventLog library aims to be a replacement of the simple syslog() API
45
 provided on UNIX systems. The major difference between EventLog and syslog
46
 is that EventLog tries to add structure to messages.
47
@@ -44,17 +53,17 @@
48
 
49
 
50
 %prep
51
-%setup -q
52
+%setup -q -n %{pkgname}-%{version}
53
 
54
 
55
 %build
56
 %configure
57
-make %{?_smp_mflags}
58
+%__make %{?_smp_mflags}
59
 
60
 
61
 %install
62
 rm -rf %{buildroot}
63
-make DESTDIR=%{buildroot} install
64
+%__make DESTDIR=%{buildroot} install-strip
65
 
66
 # we build into /usr/lib,
67
 # but we want the library (but not the devel stuff) in /lib
68
@@ -82,13 +91,13 @@
69
 %doc AUTHORS ChangeLog COPYING CREDITS NEWS README
70
 %{libdir}/libevtlog.so.*
71
 
72
-%files devel
73
+%files -n %{lib}-devel
74
 %defattr(-,root,root,-)
75
 %doc doc/*
76
 %{_libdir}/libevtlog.so
77
 %{_libdir}/pkgconfig/eventlog.pc
78
-%dir %{_includedir}/%{name}
79
-%{_includedir}/%{name}
80
+%dir %{_includedir}/%{pkgname}
81
+%{_includedir}/%{pkgname}
82
 
83
 
84
 %changelog
85
Renamed eventlog-0.2.7.tar.bz2 ^