remove theme-specific names from RC.in files, substitute them during build
[ardour2.git] / libs / pbd / libpbd.spec.in
blobd50622d63815e9c2836d71bdfcc28a39d60842d3
1 Summary: A general purpose programming library
2 %define lib_name pbd
3 Name: lib%{lib_name}
4 Version: @VERSION@
5 Release: 2
6 Copyright: GPL
7 Source: .
8 Url: http://www.quasimodo.org
9 Vendor: Paul Davis <paul@linuxaudiosystems.com>
10 Packager: jfm3 <jfm3@acm.org>
11 Group: System Environment/Libraries
12 Prefix: %{_prefix}
13 BuildRoot: %{_tmppath}/%{name}-%{version}-root
15 %description
17 This library implements a number of programming utilities used by Paul
18 Davis (formerly Paul Barton-Davis, hence the name). It is used in
19 some of his Open Source software projects. See
20 http://ardour.sf.net/ for examples.
22 %prep
23 %setup -q
25 %build
26 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure $ARCH_FLAGS --prefix=%{prefix}
27 make
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 install -d -m 755 $RPM_BUILD_ROOT%{prefix}/{{include,lib}/%{lib_name}}
32 make install INSTALL="%(which install) -p" prefix=$RPM_BUILD_ROOT%{prefix}
34 %post
35 /sbin/ldconfig
37 %postun
38 /sbin/ldconfig
40 %clean
41 rm -rf $RPM_BUILD_ROOT
43 %files
44 %defattr(-,root,root)
45 %doc README AUTHORS NEWS COPYING*
46 %{prefix}/lib/libpbd.so*
48 %package devel
49 Summary: A general purpose programming library -- developer version.
50 Group: System Environment/Libraries
52 %description devel
54 This library implements a number of programming utilities used by Paul
55 Davis (formerly Paul Barton-Davis, hence the name). It is used in
56 some of his Open Source software projects. See
57 http://ardour.sf.net/ for examples.
59 This package holds static libraries and headers needed by developers
60 who wish to use libpbd in their programs.
62 %files devel
63 %defattr(-,root,root)
64 %{prefix}/include/pbd/*
65 %{prefix}/lib/libpbd.a
66 %{prefix}/lib/libpbd.la
67 %{prefix}/bin/pbd-config
68 %{prefix}/share/aclocal/pbd.m4
69 %{prefix}/share/aclocal/unique_args.m4