]>
Commit | Line | Data |
---|---|---|
2a5554c5 | 1 | %include /usr/lib/rpm/macros.mono |
2a5554c5 | 2 | Summary: .NET support for iPods |
1f3ffbe3 | 3 | Summary(pl.UTF-8): Obsługa iPodów z poziomu .NET |
2a5554c5 | 4 | Name: dotnet-ipod-sharp |
f4a96d27 | 5 | Version: 0.8.5 |
98e9aa92 | 6 | Release: 2 |
1f3ffbe3 JB |
7 | # no real license information, just included COPYING |
8 | License: LGPL v2 | |
9 | Group: Libraries | |
f4a96d27 PZ |
10 | Source0: http://banshee-project.org/files/ipod-sharp/0.8.5/ipod-sharp-%{version}.tar.bz2 |
11 | # Source0-md5: fb7f53f64d825847d578a637cd48dd41 | |
4111af91 | 12 | Patch0: %{name}-dep.patch |
4dbe6ff5 | 13 | Patch1: %{name}-gac.patch |
1f3ffbe3 JB |
14 | URL: http://banshee-project.org/Subprojects/Ipod-sharp |
15 | BuildRequires: autoconf >= 2.50 | |
4111af91 | 16 | BuildRequires: automake >= 1:1.9 |
1f3ffbe3 | 17 | BuildRequires: dotnet-gtk-sharp2-devel >= 2.0 |
4111af91 JB |
18 | BuildRequires: dotnet-ndesk-dbus-sharp-devel |
19 | BuildRequires: dotnet-ndesk-dbus-glib-sharp-devel | |
2a5554c5 | 20 | BuildRequires: mono-csharp >= 1.1.16.1 |
98e9aa92 | 21 | BuildRequires: monodoc >= 2.6 |
2a5554c5 | 22 | BuildRequires: pkgconfig |
c04d1965 | 23 | BuildRequires: rpmbuild(monoautodeps) |
4111af91 | 24 | Suggests: podsleuth >= 0.6.1 |
ee9c7b72 | 25 | ExclusiveArch: %{ix86} %{x8664} alpha arm hppa ia64 mips ppc s390 s390x sparc sparcv9 |
2a5554c5 | 26 | ExcludeArch: i386 |
1f3ffbe3 | 27 | # can't be noarch because of pkgconfigdir (use /usr/share/pkgconfig?) |
2a5554c5 PZ |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
1f3ffbe3 | 31 | ipod-sharp provides support for high level features of Apple's iPod, |
2a5554c5 PZ |
32 | like support for audio content, including reading and writing of |
33 | the iTunes/iPod database, and syncing music. ipod-sharp also provides | |
34 | a CIL wrapper for libipoddevice. | |
35 | ||
1f3ffbe3 JB |
36 | %description -l pl.UTF-8 |
37 | ipod-sharp zapewnia obsługę wysokopoziomowych możliwości urządzeń | |
38 | Apple iPod, takich jak obsługa danych dźwiękowych wraz z odczytem i | |
39 | zapisem baz danych iTunes/iPod oraz synchronizacja muzyki. ipod-sharp | |
40 | udostępnia także wrapper CIL dla libipoddevice. | |
41 | ||
8cf53daa JB |
42 | %package devel |
43 | Summary: Development files for ipod-sharp library | |
44 | Summary(pl.UTF-8): Pliki programistyczne biblioteki ipod-sharp | |
45 | Group: Development/Libraries | |
46 | Requires: %{name} = %{version}-%{release} | |
98e9aa92 | 47 | Requires: monodoc >= 2.6 |
8cf53daa JB |
48 | |
49 | %description devel | |
50 | Development files for ipod-sharp library. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pliki programistyczne biblioteki ipod-sharp. | |
54 | ||
2a5554c5 | 55 | %prep |
4111af91 JB |
56 | %setup -q -n ipod-sharp-%{version} |
57 | %patch0 -p1 | |
4dbe6ff5 | 58 | %patch1 -p1 |
2a5554c5 PZ |
59 | |
60 | %build | |
7cd4baa0 | 61 | %{__aclocal} -I . |
2a5554c5 PZ |
62 | %{__autoconf} |
63 | %{__automake} | |
64 | %configure | |
65 | ||
1f3ffbe3 | 66 | %{__make} -j1 |
2a5554c5 PZ |
67 | |
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %{__make} install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
8cf53daa JB |
74 | # replace duplicates by symlinks |
75 | cd $RPM_BUILD_ROOT%{_prefix}/lib/ipod-sharp | |
ef6f57e1 | 76 | for f in ipod-sharp.dll* ipod-sharp-ui.dll* ; do |
8cf53daa JB |
77 | %{__rm} $f |
78 | ln -sf ../mono/gac/ipod-sharp*/*/$f $f | |
79 | done | |
80 | ||
2a5554c5 PZ |
81 | %clean |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc AUTHORS ChangeLog NEWS README | |
8cf53daa JB |
87 | %dir %{_prefix}/lib/ipod-sharp |
88 | %{_prefix}/lib/ipod-sharp/ipod-sharp-firmware.dll* | |
4dbe6ff5 PZ |
89 | %{_prefix}/lib/mono/gac/ipod-sharp |
90 | %{_prefix}/lib/mono/gac/ipod-sharp-ui | |
8cf53daa JB |
91 | |
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
94 | %{_prefix}/lib/ipod-sharp/ipod-sharp.dll* | |
95 | %{_prefix}/lib/ipod-sharp/ipod-sharp-ui.dll* | |
96 | %{_pkgconfigdir}/ipod-sharp.pc | |
97 | %{_pkgconfigdir}/ipod-sharp-ui.pc | |
98e9aa92 | 98 | %{_prefix}/lib/monodoc/sources/ipod-sharp-docs.* |