~ubuntu-branches/ubuntu/breezy/vanessa-logger/breezy

« back to all changes in this revision

Viewing changes to vanessa_logger.spec

  • Committer: Bazaar Package Importer
  • Author(s): Simon Horman
  • Date: 2004-08-29 18:48:47 UTC
  • mfrom: (0.1.1 upstream) (1.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040829184847-cxmqtjoqlv3kpe8j
Tags: 0.0.7-1
Fixed gcc-3.4 build problem. (closes: Bug#262743)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
%define prefix   /usr
2
2
 
 
3
#Uncomment these if they are not defined by your rpm macros file
 
4
#%define _prefix                /usr
 
5
#%define _exec_prefix           %{_prefix}
 
6
#%define _bindir                %{_exec_prefix}/bin
 
7
#%define _sbindir               %{_exec_prefix}/sbin
 
8
#%define _libexecdir            %{_exec_prefix}/libexec
 
9
#%define _datadir               %{_prefix}/share
 
10
#%define _sysconfdir            %{_prefix}/etc
 
11
#%define _sharedstatedir        %{_prefix}/com
 
12
#%define _localstatedir         %{_prefix}/var
 
13
#%define _lib                   lib
 
14
#%define _libdir                %{_exec_prefix}/%{_lib}
 
15
#%define _includedir            %{_prefix}/include
 
16
#%define _oldincludedir         /usr/include
 
17
#%define _infodir               %{_prefix}/info
 
18
#%define _mandir                %{_prefix}/man
 
19
 
3
20
Summary: Generic logging layer
4
21
Name: vanessa_logger
5
 
Version: 0.0.2
 
22
Version: 0.0.7
6
23
Release: 1
7
24
Copyright: GNU Lesser General Public Licence
8
 
URL: http://vanessa.sourceforge.net/
9
 
Packager: Horms <horms@vergenet.net>
 
25
URL: http://www.vergenet.net/linux/vanessa/
 
26
Packager: Horms <horms@verge.net.au>
10
27
Group: Development/Libraries
11
 
Source0: ftp://vergenet.net/pub/vanessa_logger/vanessa_logger/%{name}-%{version}.tar.gz
 
28
Source0: http://www.vergenet.net/linux/vanessa/download/vanessa_logger/%{version}/%{name}-%{version}.tar.gz
12
29
BuildRoot: /var/tmp/%{name}-%{version}-root
13
30
Docdir: %{prefix}/doc
14
31
Provides: %{name}-%{version}
 
32
BuildPrereq: automake autoconf libtool
15
33
 
16
34
%description
17
35
Generic logging layer that may be used to log to one or more of syslog, an
44
62
 
45
63
%build
46
64
 
47
 
%configure
48
 
CFLAGS="${RPM_OPT_FLAGS}" make
 
65
# I am providing my own configure macro replacement. Hopefully this
 
66
# will result in fewer portability problems than using the one supplied
 
67
# by various vendours. I fear that I hope in vein.
 
68
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
 
69
if [ -f confgure.in ]; then
 
70
        aclocal
 
71
        libtoolize --force --copy
 
72
        autoheader
 
73
        automake
 
74
        autoconf
 
75
fi
 
76
./configure %{_target_platform} \
 
77
       --prefix=%{_prefix} \
 
78
       --exec-prefix=%{_exec_prefix} \
 
79
       --bindir=%{_bindir} \
 
80
       --sbindir=%{_sbindir} \
 
81
       --sysconfdir=%{_sysconfdir} \
 
82
       --datadir=%{_datadir} \
 
83
       --includedir=%{_includedir} \
 
84
       --libdir=%{_libdir} \
 
85
       --libexecdir=%{_libexecdir} \
 
86
       --localstatedir=%{_localstatedir} \
 
87
       --sharedstatedir=%{_sharedstatedir} \
 
88
       --mandir=%{_mandir} \
 
89
       --infodir=%{_infodir}
49
90
 
 
91
make
50
92
 
51
93
%install
52
94
rm -rf ${RPM_BUILD_ROOT}
53
 
mkdir -p ${RPM_BUILD_ROOT}/{etc,%{prefix}/{lib,bin,doc}}
 
95
mkdir -p ${RPM_BUILD_ROOT}/%{prefix}/doc
54
96
make DESTDIR=$RPM_BUILD_ROOT install
55
97
 
56
98
 
57
99
%clean
58
 
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
59
100
rm -rf $RPM_BUILD_ROOT
60
101
 
61
102
 
67
108
 
68
109
%files
69
110
%defattr(-, root, root)
70
 
%{prefix}/lib/*.so*
 
111
%{_libdir}/*.so*
71
112
 
72
113
%files devel
73
114
%defattr(-, root, root)
74
 
%{prefix}/lib/*.*a
75
 
%{prefix}/include/*.h
 
115
%{_libdir}/*.*a
 
116
%{_includedir}/*.h
76
117
%doc README COPYING ChangeLog
77
118
 
78
119
%files sample
79
120
%defattr(-, root, root)
80
 
%{prefix}/bin/*
81
 
%{prefix}/man/man1/vanessa_logger_sample.*
 
121
%{_bindir}/*
 
122
%{_mandir}/man1/vanessa_logger_sample.*
82
123
%doc sample/*.c sample/*.h
83
124
 
84
125
%changelog
85
 
* Thu Apr 26 2001 Horms <horms@vergenet.net>
 
126
* Fri Dec 14 2001 Horms <horms@verge.net.au>
 
127
  Revamped configure to use %{_libdir} and friends. This should be more
 
128
  distribution indepentant. With thanks to Scot W. Hetzel <scot@genroco.com>
 
129
* Thu Apr 26 2001 Horms <horms@verge.net.au>
86
130
  Updated to "work" with Red Hat 7
87
 
 
88
 
* Sat Sep 15 2000 Horms <horms@vergenet.net>
89
 
- created for version 0.0.0
 
131
* Sat Sep 15 2000 Horms <horms@verge.net.au>
 
132
  created for version 0.0.0