File libPropList.spec of Package libPropList

#
# spec file for package libPropList (Version 0.10.1)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           libPropList
BuildRequires:  bison
License:        GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Group:          System/Libraries
Provides:       proplst
Obsoletes:      proplst
Autoreqprov:    on
Version:        0.10.1
Release:        677
URL:            http://www.windowmaker.org
Summary:        The PropList Library Needed by WindowMaker and Related Projects
Source:         ftp://ftp.windowmaker.org/pub/beta/srcs/libPropList-%{version}.tar.bz2
Patch:          libPropList-%{version}.dif
Patch1:         libPropList-0.10.1-yyparse.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The PropList (PL) library is supposed to closely mimic the behavior of
the property lists used in GNUstep/OPENSTEP. It provides functionality
to manipulate files, write to and read from files, and synchronize with
the contents of a file for a tree structure of strings, data blocks,
arrays, and dictionaries (key-value pair lists). PropList is used by
WindowMaker and related projects. Includes are in the libPropListd
package.



Authors:
--------
    Bjoern Giesler <giesler@ira.uka.de>

%package devel
Requires:       libPropList
Provides:       proplstd 
Obsoletes:      proplstd
Summary:        PropList Development Package
Group:          Development/Libraries/C and C++
Autoreqprov:    on

%description devel
This package contains libraries and includes that are not needed on
thin clients unless for development.



Authors:
--------
    Bjoern Giesler <giesler@ira.uka.de>

%prep
%setup -n libPropList-%{version}
%patch
%patch1
#
#to be sure
rm proplist_y.c proplist_y.h

%build
%{?suse_update_config:%{suse_update_config -f }}
autoreconf --force --install
export CFLAGS="-DUSE_FLOCK $RPM_OPT_FLAGS"
./configure	--prefix=%{_prefix} \
		--exec-prefix=%{_prefix} \
		--libdir=%{_libdir}
make

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post
%run_ldconfig

%postun
%run_ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.LIB
%doc ChangeLog NEWS README TODO
%{_libdir}/libPropList.so.*

%files devel
%defattr(-,root,root)
/usr/include/proplist.h
%{_libdir}/libPropList.a
%{_libdir}/libPropList.la
%{_libdir}/libPropList.so

%changelog
* Thu Mar 29 2007 - rguenther@suse.de
- add bison BuildRequires
* Wed Aug 16 2006 - ro@suse.de
- move from /usr/X11R6 to /usr
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Sep 20 2005 - nadvornik@suse.cz
- fixed missing includes
* Mon Jan 12 2004 - ro@suse.de
- fix last change
* Sat Jan 10 2004 - adrian@suse.de
- add %%defattr and %%run_ldconfig
* Wed Jun 12 2002 - ro@suse.de
- call autoreconf (fixes build on ppc64)
* Wed Apr 24 2002 - nadvornik@suse.cz
- used macro %%{_lib}
- fixed spec file
* Tue May 15 2001 - nadvornik@suse.cz
- fixed return handling in yyparse.
* Thu Dec 14 2000 - nadvornik@suse.cz
- fixed USE_FLOCK patch
* Wed Nov 15 2000 - nadvornik@suse.cz
- renamed proplst  -> libPropList
-         proplstd -> libPropList-devel
* Mon Oct 09 2000 - nadvornik@suse.cz
- fixed Copyright
- used bzip2
* Tue May 09 2000 - nadvornik@suse.cz
- updated to 0.10.1  + USE_FLOCK patches
- added BuildRoot
* Sat Apr 08 2000 - bk@suse.de
- added suse update config macro
* Tue Oct 12 1999 - mt@suse.de
- updated to version 0.9.1 + USE_FLOCK patches
* Mon Sep 27 1999 - bs@suse.de
- fixed requirements for sub packages
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Wed Aug 18 1999 - mt@suse.de
- changed fcntl to flock (added #define USE_FLOCK),
  because of NFS problems (WPrefs in Wmaker)
* Mon Apr 05 1999 - bs@suse.de
- fixed date strings in .changes.
* Wed Feb 17 1999 - mt@suse.de
- new package, version 0.8.3
openSUSE Build Service is sponsored by