source: projects/specs/trunk/lib/libs/libspnav/libspnav-vl.spec @ 9249

Revision 9249, 2.0 KB checked in by Takemikaduchi, 8 years ago (diff)

python3-{pyatspi,pycairo,pygobject},gedit,accerciser,eog-plugins: rebuild with python3
others: new upstream release

Line 
1Summary:        3Dconnexion device driver and SDK
2Name:           libspnav
3Version:        0.2.3
4Release:        1%{?_dist_release}
5License:        BSD
6Group: System Environment/Libraries
7URL: http://spacenav.sourceforge.net/
8
9Source0: %{name}-%{version}.tar.gz
10
11Patch0: libspnav-0.2.3-lib_links.patch
12
13BuildRoot: %{_tmppath}/%{name}-%{version}-root
14
15BuildRequires: libX11-devel
16
17Vendor: Project Vine
18Distribution: Vine Linux
19Packager: Takemikaduchi
20
21%description
22The libspnav library is provided as a replacement of the magellan library.
23It provides a cleaner, and more orthogonal interface. libspnav supports
24both the original X11 protocol for communicating with the driver, and the
25new alternative non-X protocol. Programs that choose to use the X11
26protocol, are automatically compatible with either the free spacenavd
27driver or the official dxserv, as if they were using the magellan SDK.
28
29Also, libspnav provides a magellan API wrapper on top of the new API.
30So, any applications that were using the magellan library, can switch to
31libspnav without any changes. And programmers that are familliar with the
32magellan API can continue using it with a free library without the
33restrictions of the official SDK.
34
35
36%package        devel
37Summary:        Development files for %{name}
38Group:          Development/Libraries
39
40Requires:       %{name} = %{version}-%{release}
41
42%description devel
43This package contains development files for %{name}.
44
45
46%prep
47%setup -q
48%patch0 -p1 -b .link
49
50%build
51%ifarch x86_64
52sed -i "s|libdir=lib|libdir=lib64|" configure
53%endif
54%configure
55
56make %{?_smp_mflags}
57
58%install
59rm -rf $RPM_BUILD_ROOT
60
61make install DESTDIR=$RPM_BUILD_ROOT
62
63find $RPM_BUILD_ROOT -type f -name "*.a" -delete
64find $RPM_BUILD_ROOT -type f -name "*.la" -delete
65
66%clean
67rm -rf $RPM_BUILD_ROOT
68
69%post -p /sbin/ldconfig
70
71%postun -p /sbin/ldconfig
72
73
74%files
75%defattr(-,root,root,-)
76%doc README
77%{_libdir}/libspnav.so.*
78
79%files devel
80%defattr(-,root,root,-)
81%{_libdir}/libspnav.so
82%{_includedir}/spnav.h
83%{_includedir}/spnav_config.h
84%{_includedir}/spnav_magellan.h
85
86
87%changelog
88* Mon Jan 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.3-1
89- initial build
Note: See TracBrowser for help on using the repository browser.