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
15 URL: http://ostatic.com/wgois/
16 BuildRequires: autoconf >= 2.50
17 BuildRequires: automake >= 1.6
18 BuildRequires: libstdc++-devel
19 BuildRequires: libtool >= 2:1.4
20 BuildRequires: xorg-lib-libXaw-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The goal of OIS is shield the application programmer from having to
25 rewrite input systems from scratch for each project.
27 %description -l pl.UTF-8
28 Celem projektu OIS jest ochrona twórcy aplikacji przed przepisywaniem
29 na nowo systemów wejścia w każdym projekcie.
32 Summary: Header files for OIS library
33 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OIS
34 Group: Development/Libraries
35 Requires: %{name} = %{version}-%{release}
36 Requires: libstdc++-devel
37 Requires: xorg-lib-libXaw-devel
40 Header files for OIS library.
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki OIS.
46 Summary: Static OIS library
47 Summary(pl.UTF-8): Statyczna biblioteka OIS
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}-%{release}
54 %description static -l pl.UTF-8
55 Statyczna biblioteka OIS.
58 %setup -q -n %{name}-v%{file_version}
67 %{!?with_static_libs:--disable-static}
71 rm -rf $RPM_BUILD_ROOT
74 DESTDIR=$RPM_BUILD_ROOT
77 rm -rf $RPM_BUILD_ROOT
79 %post -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
83 %defattr(644,root,root,755)
84 %attr(755,root,root) %{_libdir}/libOIS-*.*.*.so
87 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_libdir}/libOIS.so
91 %{_pkgconfigdir}/OIS.pc
93 %if %{with static_libs}
95 %defattr(644,root,root,755)