3 %bcond_without static_libs # don't build static library
5 %define file_version %(echo %{version} | tr . -)
6 Summary: Object Oriented Input System
7 Summary(pl.UTF-8): Zorientowany obiektowo system wejścia
13 Source0: http://downloads.sourceforge.net/wgois/%{name}_v%{file_version}.tar.gz
14 # Source0-md5: 9697fead17eac6025151cd2e1fca1518
16 URL: http://ostatic.com/wgois/
17 BuildRequires: autoconf >= 2.50
18 BuildRequires: automake >= 1.6
19 BuildRequires: libstdc++-devel
20 BuildRequires: libtool >= 2:1.4
21 BuildRequires: xorg-lib-libXaw-devel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 The goal of OIS is shield the application programmer from having to
26 rewrite input systems from scratch for each project.
28 %description -l pl.UTF-8
29 Celem projektu OIS jest ochrona twórcy aplikacji przed przepisywaniem
30 na nowo systemów wejścia w każdym projekcie.
33 Summary: Header files for OIS library
34 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OIS
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
37 Requires: libstdc++-devel
38 Requires: xorg-lib-libXaw-devel
41 Header files for OIS library.
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki OIS.
47 Summary: Static OIS library
48 Summary(pl.UTF-8): Statyczna biblioteka OIS
49 Group: Development/Libraries
50 Requires: %{name}-devel = %{version}-%{release}
55 %description static -l pl.UTF-8
56 Statyczna biblioteka OIS.
59 %setup -q -n %{name}-v%{file_version}
69 %{!?with_static_libs:--disable-static}
73 rm -rf $RPM_BUILD_ROOT
76 DESTDIR=$RPM_BUILD_ROOT
79 rm -rf $RPM_BUILD_ROOT
81 %post -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
85 %defattr(644,root,root,755)
86 %attr(755,root,root) %{_libdir}/libOIS-*.*.*.so
89 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_libdir}/libOIS.so
93 %{_pkgconfigdir}/OIS.pc
95 %if %{with static_libs}
97 %defattr(644,root,root,755)