]> git.pld-linux.org Git - packages/captive-drivers.git/blame - captive-drivers.spec
- converted to UTF-8
[packages/captive-drivers.git] / captive-drivers.spec
CommitLineData
4f6ec1fb 1# the drivers that were supposed to work, didn't.
5fd23de0 2# so these drivers didn't work for me.
1dff71eb 3#
4# Conditional build:
5%bcond_with license_agreement # generates package
6%define source_url http://download.microsoft.com/download/9/7/6/9763833d-bd58-41e2-9911-50f64c7252a3/
7#
5fd23de0 8Summary: NTFS Drivers
9106bbb1 9Summary(pl.UTF-8): Sterowniki NTFS
1dff71eb 10%define base_name captive-drivers
11%if %{with license_agreement}
12Name: %{base_name}
13%else
14Name: %{base_name}-installer
15%endif
16Version: 0.2
17%define _rel 1
18Release: %{_rel}%{?with_license_agreement:wla}
19Group: Libraries
5fd23de0 20License: restricted, non-distributable
1dff71eb 21%if %{with license_agreement}
3a3676b5 22# NB! This is 145M download.
1dff71eb 23Source0: %{source_url}xpsp1a_en_x86_CHK.exe
8f82caf4 24BuildRequires: cabextract
4f6ec1fb 25Requires: captive
1dff71eb 26%else
27Source0: license-installer.sh
28Requires: cpio
29Requires: rpm-build-tools
30Requires: wget
31Provides: %{base_name}
32%endif
5fd23de0
ER
33ExclusiveArch: %{ix86}
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
6cb78aad 37Contains ntfs.sys and ntoskrnl.exe from Windows XP SP1.
1a50eb6c 38%if !%{with license_agreement}
1dff71eb 39License issues made us not to include inherent files into this package
40by default. If you want to create full working package please build it
41with the following command:
42
43%{base_name}.install --with license_agreement %{_datadir}/%{base_name}/%{base_name}.spec
44%endif
6cb78aad 45
9106bbb1
JR
46%description -l pl.UTF-8
47Pakiet zawierający ntfs.sys i ntoskrnl.exe z Windows XP SP1.
1a50eb6c 48%if !%{with license_agreement}
9106bbb1
JR
49Kwestie licencji zmusiły nas do niedołączania do tego pakietu istotnych
50plików. Jeśli chcesz stworzyć w pełni funkcjonalny pakiet, zbuduj go za
51pomocą polecenia:
1dff71eb 52
53%{base_name}.install --with license_agreement %{_datadir}/%{base_name}/%{base_name}.spec
54%endif
5fd23de0
ER
55
56%prep
57%setup -q -c -T
1dff71eb 58%if %{with license_agreement}
8f82caf4
ER
59cabextract %{SOURCE0} -F ntfs.sys
60cabextract %{SOURCE0} -F ntoskrnl.ex_
61cabextract ntoskrnl.ex_
1dff71eb 62%endif
5fd23de0 63
5fd23de0
ER
64%install
65rm -rf $RPM_BUILD_ROOT
1dff71eb 66
1a50eb6c 67%if !%{with license_agreement}
1dff71eb 68install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}}
69
70sed -e '
71 s/@BASE_NAME@/%{base_name}/g
72 s/@TARGET_CPU@/%{_target_cpu}/g
73 s-@VERSION@-%{version}-g
74 s-@RELEASE@-%{release}-g
75 s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
76' %{SOURCE0} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
77
78install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
79%else
5fd23de0 80install -d $RPM_BUILD_ROOT/var/lib/captive
8f82caf4 81install ntfs.sys ntoskrnl.exe $RPM_BUILD_ROOT/var/lib/captive
1dff71eb 82%endif
83
1a50eb6c 84%if !%{with license_agreement}
1dff71eb 85%post
86%{_bindir}/%{base_name}.install
87%endif
5fd23de0
ER
88
89%clean
90rm -rf $RPM_BUILD_ROOT
91
92%files
93%defattr(644,root,root,755)
1dff71eb 94%if %{with license_agreement}
5fd23de0 95/var/lib/captive/*
1dff71eb 96%else
97%attr(755,root,root) %{_bindir}/%{base_name}.install
98%{_datadir}/%{base_name}
99%endif
This page took 0.11741 seconds and 4 git commands to generate.