File libdockapp.spec of Package libdockapp

%define _name          libdockapp
Name:		libdockapp2
Group: 		Development/Languages
Version: 	0.7.3
Release: 	36.1
License: 	GPL
Summary: 	Window Maker Dock App support (shared library)
Source: 	%{_name}-%{version}.tar.gz
#Patch0: 	%{_name}-%{version}.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
Conflicts:  %{_name}
%if 0%{?mandriva_version}
%ifarch x86_64
BuildRequires:  libxpm-devel lib64xext6-devel
Requires:	lib64xpm4 lib64xext6
%endif
%ifarch %{ix86}
BuildRequires:  libxpm-devel libxext6-devel
Requires:	libxpm4 libxext6
%endif
%endif
%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
BuildRequires:  libXpm-devel libXext-devel
Requires:	libXpm libXext
%endif
%if 0%{?suse_version}
BuildRequires:  xorg-x11-libXpm-devel xorg-x11-libXext-devel libtool
Requires:	xorg-x11-libXpm xorg-x11-libXext
%endif
BuildRequires:  libtool
%description
Simple library that eases the creation of Window Maker dock apps. It
provides functions that set up a dock app in such a way that they can be
properly docked. It also provides some event handlers and makes it very
simple to write dockapps.

This package contains the shared library and devel files. 
Install this for programs that use libdockapp.

Homepage: https://www.dockapps.net/libdockapp

%package devel                                                                                               
Summary:        Include Files and Libraries mandatory for Development                                    
Group:          Development/Libraries/C and C++                                                              
Requires:       %{name} = %{version}                                                             

%description devel
Simple library that eases the creation of Window Maker dock apps.
Development files and examples.

%prep
%setup -q -n %{_name}-%{version}
#%patch0 -p1

%build
aclocal
autoconf
automake
autoreconf -f -i
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --libdir=%{_libdir}
%{__make}

%install
make DESTDIR=$RPM_BUILD_ROOT install

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL BUGS
%{_datadir}/fonts/dockapp
%{_libdir}/libdockapp.so.*
%exclude %{_libdir}/libdockapp.la

%files devel
%defattr(-,root,root)
%{_libdir}/libdockapp.so
%{_libdir}/libdockapp.a
%{_includedir}/dockapp.h
%{_datadir}/libdockapp

%clean
rm -rf %{buildroot}

%post                                                                                                        
%run_ldconfig                                                                                                
                                                                                                             
%postun                                                                                                      
%run_ldconfig

%changelog       
* Mon Sep 20 2021 Cougar <cougar@random.ee>
- Upgrade to 0.7.3

* Tue Mar 22 2011 Agnelo de la Crotche <agnelo@unixversal.com>
- package for openSUSE 11.3/11.4

* Wed Dec 24 2008 Dmitry Stropaloff <helions8@gmail.com>
- updated library name
- updated font install paths
- many changes in spec file

* Sat May 10 2008 helions8@gmail.com
- update to version 0.6.2
                               
* Sat Oct 13 2007 helions8@gmail.com
- initial version
- added patch for examples installation path
openSUSE Build Service is sponsored by