File libPropList.spec of Package libPropList

#
# spec file for package libPropList (Version 0.10.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libPropList
BuildRequires:  bison
License:        LGPL v2.1 or later
Group:          System/Libraries
Provides:       proplst
Obsoletes:      proplst
AutoReqProv:    on
Version:        0.10.1
Release:        772
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
License:        LGPL v2.1 or later
Requires:       %{name} = %{version}
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 -q -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 --disable-static --with-pic
%{__make}

%install
make install DESTDIR=$RPM_BUILD_ROOT
%{__rm} -f %{buildroot}%{_libdir}/*.la

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/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.so

%changelog
* Sat Apr 04 2009 crrodriguez@suse.de
- remove static librarie and "la" files
* 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