]>
Commit | Line | Data |
---|---|---|
185fde1e JR |
1 | |
2 | %bcond_with snap # include shapshot information in version, | |
3 | # should be used only in official Th spanhots | |
4 | ||
5 | %define snapshot 2012 | |
6 | ||
7 | # CPE_NAME = cpe:/ {part} : {vendor} : {product} : {version} : {update} : {edition} : {language} | |
8 | # http://cpe.mitre.org/specification/ | |
9 | # http://csrc.nist.gov/publications/nistir/ir7695/NISTIR-7695-CPE-Naming.pdf | |
10 | ||
11 | %if %{with snap} | |
12 | %define distname Th/%{snapshot} | |
13 | %define cpename cpe:/o:pld-linux:pld:%{distversion}:%{snapshot} | |
14 | %else | |
15 | %define distname Th | |
16 | %define cpename cpe:/o:pld-linux:pld:%{distversion} | |
17 | %endif | |
18 | %define distversion 3.0 | |
19 | %define distrelease "%{distversion} PLD Linux (%{distname})" | |
20 | ||
21 | Summary: PLD Linux release file | |
22 | Summary(cs.UTF-8): Soubor s číslem verze systému PLD Linux | |
23 | Summary(da.UTF-8): PLD Linux release fil | |
24 | Summary(de.UTF-8): PLD Linux Release-Datei | |
25 | Summary(es.UTF-8): El fichero con la versión de PLD Linux | |
26 | Summary(fr.UTF-8): Fichier de version de PLD Linux | |
27 | Summary(id.UTF-8): File rilis PLD Linux | |
28 | Summary(is.UTF-8): Útgáfuskráin fyrir PLD Linux | |
29 | Summary(it.UTF-8): File della release di PLD Linux | |
30 | Summary(ja.UTF-8): PLD Linux リリースファイル | |
31 | Summary(ko.UTF-8): PLD Linux 배포 파일 | |
32 | Summary(nb.UTF-8): PLD Linux release fil | |
33 | Summary(pl.UTF-8): Wersja Linuksa PLD | |
34 | Summary(pt.UTF-8): O ficheiro de versão final do PLD Linux | |
35 | Summary(ru.UTF-8): Файл релиза PLD Linux | |
36 | Summary(sk.UTF-8): Súbor označujúci verziu PLD Linux | |
37 | Summary(sl.UTF-8): Datoteka s podatki o izdaji PLD Linuxa | |
38 | Summary(sv.UTF-8): PLD Linux versionsfil | |
39 | Summary(tr.UTF-8): PLD Linux sürüm dosyası | |
40 | Summary(zh_CN.UTF-8): PLD Linux 版本文件。 | |
41 | Name: pld-release | |
42 | Version: %{distversion} | |
bba2d7fc | 43 | Release: 2%{?with_snap:.%{snapshot}} |
185fde1e JR |
44 | License: GPL |
45 | Group: Base | |
bba2d7fc | 46 | Conflicts: issue < 3.0-1 |
185fde1e JR |
47 | BuildArch: noarch |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
49 | ||
50 | %description | |
51 | PLD Linux release file. | |
52 | ||
53 | %description -l cs.UTF-8 | |
54 | Soubor s číslem verze systému PLD Linux. | |
55 | ||
56 | %description -l da.UTF-8 | |
57 | PLD Linux release fil. | |
58 | ||
59 | %description -l de.UTF-8 | |
60 | PLD Linux Release-Datei. | |
61 | ||
62 | %description -l es.UTF-8 | |
63 | El fichero con la versión de PLD Linux. | |
64 | ||
65 | %description -l fr.UTF-8 | |
66 | Fichier de version de PLD Linux. | |
67 | ||
68 | %description -l id.UTF-8 | |
69 | File rilis PLD Linux. | |
70 | ||
71 | %description -l is.UTF-8 | |
72 | Útgáfuskráin fyrir PLD Linux. | |
73 | ||
74 | %description -l it.UTF-8 | |
75 | File della release di PLD Linux. | |
76 | ||
77 | %description -l ja.UTF-8 | |
78 | PLD Linux リリースファイル | |
79 | ||
80 | %description -l ko.UTF-8 | |
81 | PLD Linux 배포 파일. | |
82 | ||
83 | %description -l nb.UTF-8 | |
84 | PLD Linux release fil. | |
85 | ||
86 | %description -l pl.UTF-8 | |
87 | Wersja Linuksa PLD. | |
88 | ||
89 | %description -l pt.UTF-8 | |
90 | O ficheiro de versão final do PLD Linux. | |
91 | ||
92 | %description -l ru.UTF-8 | |
93 | Файл релиза PLD Linux. | |
94 | ||
95 | %description -l sk.UTF-8 | |
96 | Súbor označujúci verziu PLD Linux. | |
97 | ||
98 | %description -l sl.UTF-8 | |
99 | Datoteka s podatki o izdaji PLD Linuxa. | |
100 | ||
101 | %description -l sv.UTF-8 | |
102 | PLD Linux versionsfil. | |
103 | ||
104 | %description -l tr.UTF-8 | |
105 | PLD Linux sürüm dosyası. | |
106 | ||
107 | %description -l zh_CN.UTF-8 | |
108 | PLD Linux 版本文件。 | |
109 | ||
110 | %prep | |
111 | ||
112 | %install | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | install -d $RPM_BUILD_ROOT%{_sysconfdir} | |
115 | ||
116 | echo %{distrelease} > $RPM_BUILD_ROOT%{_sysconfdir}/pld-release | |
117 | ||
118 | cat >$RPM_BUILD_ROOT%{_sysconfdir}/os-release <<EOF | |
119 | NAME="PLD Linux" | |
120 | VERSION="%{distversion} (%{distname})" | |
121 | ID="pld" | |
122 | VERSION_ID="%{distversion}" | |
123 | PRETTY_NAME="PLD Linux %{distversion} (%{distname})" | |
124 | ANSI_COLOR="0;32" | |
125 | CPE_NAME="%{cpename}" | |
126 | HOME_URL="http://www.pld-linux.org/" | |
127 | BUG_REPORT_URL="http://bugs.pld-linux.org/" | |
128 | EOF | |
129 | ||
130 | %clean | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | %files | |
134 | %defattr(644,root,root,755) | |
135 | %{_sysconfdir}/os-release | |
136 | %{_sysconfdir}/pld-release |