Page MenuHomeClusterLabs Projects

No OneTemporary

diff --git a/lib/Makefile.am b/lib/Makefile.am
index a84489d..9a44a89 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -1,47 +1,50 @@
#
# Copyright (C) 2010 Red Hat, Inc.
#
# Author: Angus Salkeld <asaslkeld@redhat.com>
#
# This file is part of libqb.
#
# libqb is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 2.1 of the License, or
# (at your option) any later version.
#
# libqb is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with libqb. If not, see <http://www.gnu.org/licenses/>.
MAINTAINERCLEANFILES = Makefile.in
noinst_HEADERS = ipc_int.h util_int.h
lib_LIBRARIES = libqbplugin.a
libqbplugin_a_SOURCES = plugin_loader.c
#
# Here are a set of rules to help you update your library version information:
# Start with version information of ‘0:0:0’ for each libtool library.
# Update the version information only immediately before a public release of your software.
# More frequent updates are unnecessary, and only guarantee that the current interface number gets larger faster.
# If the library source code has changed at all since the last update, then increment revision (‘c:r:a’ becomes ‘c:r+1:a’).
# If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0.
# If any interfaces have been added since the last public release, then increment age.
# If any interfaces have been removed since the last public release, then set age to 0.
#
lib_LTLIBRARIES = libqb.la
libqb_la_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
libqb_la_LDFLAGS = -version-info 0:0:0
libqb_la_SOURCES = util.c tsafe.c hash.c poll.c timer.c wthread.c \
ipcc.c ipcs.c logsys.c
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libqb.pc
+
diff --git a/lib/libqb.pc.in b/lib/libqb.pc.in
index d5d9d87..6d0963f 100644
--- a/lib/libqb.pc.in
+++ b/lib/libqb.pc.in
@@ -1,11 +1,11 @@
prefix=@prefix@
exec_prefix=${prefix}
libdir=@libdir@
includedir=${prefix}/include
Name: libqb
-Version: @VERSION@
+Version: @PACKAGE_VERSION@
Description: libqb
Requires:
Libs: -L${libdir} -lqb -lrt
Cflags: -I${includedir}
diff --git a/libqb.spec.in b/libqb.spec.in
index e72814f..d8f1441 100644
--- a/libqb.spec.in
+++ b/libqb.spec.in
@@ -1,88 +1,89 @@
%global alphatag @alphatag@
Name: libqb
Summary: The Quarterback Client Server Developer Library
Version: @version@
Release: 1%{?alphatag:.%{alphatag}}%{?dist}
License: LGPL-2.1
Group: System Environment/Libraries
URL: http://www.openais.org
Source0: http://developer.osdl.org/dev/openais/downloads/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires: autoconf automake
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%prep
%setup -q -n %{name}-%{version}
./autogen.sh
%{configure}
%build
make %{_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
## tree fixup
# drop static libs
rm -f %{buildroot}%{_libdir}/*.a
# drop docs and html docs for now
rm -rf %{buildroot}%{_docdir}/*
%clean
rm -rf %{buildroot}
%description
This package contains libqb libraries.
%files -n libqb
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/libqb.so.*
%post -n libqb -p /sbin/ldconfig
%postun -n libqb -p /sbin/ldconfig
%package -n libqb-devel
Summary: The Quarterback Development Kit
Group: Development/Libraries
Requires: libqb = %{version}-%{release}
Requires: pkgconfig
Provides: libqb-devel = %{version}
%description -n libqb-devel
This package contains include files and man pages used to develop using
The Quarterback APIs.
%files -n libqb-devel
%defattr(-,root,root,-)
%doc COPYING README
%dir %{_includedir}/qb/
%{_libdir}/libqb.so
%{_libdir}/libqb.la
+%{_libdir}/pkgconfig/libqb.pc
%{_includedir}/qb/qbtsafe.h
%{_includedir}/qb/qbpoll.h
%{_includedir}/qb/qbhdb.h
%{_includedir}/qb/qblist.h
%{_includedir}/qb/qbtimer.h
%{_includedir}/qb/qbplugin.h
%{_includedir}/qb/qbplugin_comp.h
%{_includedir}/qb/qbipcc.h
%{_includedir}/qb/qbipcs.h
%{_includedir}/qb/qbipc_common.h
%{_includedir}/qb/qbqueue.h
%{_includedir}/qb/qbwthread.h
%{_includedir}/qb/qblogsys.h
%{_includedir}/qb/qbhash.h
%{_includedir}/qb/qbutil.h
%{_mandir}/man3/qb*3*
%changelog
* @date@ Autotools generated version <nobody@nowhere.org> - @version@-1.@alphatag@
- Autotools generated version

File Metadata

Mime Type
text/x-diff
Expires
Wed, Feb 26, 9:52 PM (6 h, 19 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1465798
Default Alt Text
(4 KB)

Event Timeline