]>
Commit | Line | Data |
---|---|---|
185fde1e JR |
1 | |
2 | %bcond_with snap # include shapshot information in version, | |
8375ff4a | 3 | # should be used only in official Th snapshots |
185fde1e | 4 | |
b33b6db2 | 5 | %define snapshot 2013 |
185fde1e JR |
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} | |
d7ca7bd4 | 43 | Release: 5%{?with_snap:.%{snapshot}} |
185fde1e JR |
44 | License: GPL |
45 | Group: Base | |
d7ca7bd4 | 46 | Provides: system-release(releasever) = %{distversion} |
bba2d7fc | 47 | Conflicts: issue < 3.0-1 |
185fde1e JR |
48 | BuildArch: noarch |
49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
50 | ||
51 | %description | |
52 | PLD Linux release file. | |
53 | ||
54 | %description -l cs.UTF-8 | |
55 | Soubor s číslem verze systému PLD Linux. | |
56 | ||
57 | %description -l da.UTF-8 | |
58 | PLD Linux release fil. | |
59 | ||
60 | %description -l de.UTF-8 | |
61 | PLD Linux Release-Datei. | |
62 | ||
63 | %description -l es.UTF-8 | |
64 | El fichero con la versión de PLD Linux. | |
65 | ||
66 | %description -l fr.UTF-8 | |
67 | Fichier de version de PLD Linux. | |
68 | ||
69 | %description -l id.UTF-8 | |
70 | File rilis PLD Linux. | |
71 | ||
72 | %description -l is.UTF-8 | |
73 | Útgáfuskráin fyrir PLD Linux. | |
74 | ||
75 | %description -l it.UTF-8 | |
76 | File della release di PLD Linux. | |
77 | ||
78 | %description -l ja.UTF-8 | |
79 | PLD Linux リリースファイル | |
80 | ||
81 | %description -l ko.UTF-8 | |
82 | PLD Linux 배포 파일. | |
83 | ||
84 | %description -l nb.UTF-8 | |
85 | PLD Linux release fil. | |
86 | ||
87 | %description -l pl.UTF-8 | |
88 | Wersja Linuksa PLD. | |
89 | ||
90 | %description -l pt.UTF-8 | |
91 | O ficheiro de versão final do PLD Linux. | |
92 | ||
93 | %description -l ru.UTF-8 | |
94 | Файл релиза PLD Linux. | |
95 | ||
96 | %description -l sk.UTF-8 | |
97 | Súbor označujúci verziu PLD Linux. | |
98 | ||
99 | %description -l sl.UTF-8 | |
100 | Datoteka s podatki o izdaji PLD Linuxa. | |
101 | ||
102 | %description -l sv.UTF-8 | |
103 | PLD Linux versionsfil. | |
104 | ||
105 | %description -l tr.UTF-8 | |
106 | PLD Linux sürüm dosyası. | |
107 | ||
108 | %description -l zh_CN.UTF-8 | |
109 | PLD Linux 版本文件。 | |
110 | ||
111 | %prep | |
112 | ||
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | install -d $RPM_BUILD_ROOT%{_sysconfdir} | |
116 | ||
117 | echo %{distrelease} > $RPM_BUILD_ROOT%{_sysconfdir}/pld-release | |
118 | ||
119 | cat >$RPM_BUILD_ROOT%{_sysconfdir}/os-release <<EOF | |
120 | NAME="PLD Linux" | |
121 | VERSION="%{distversion} (%{distname})" | |
122 | ID="pld" | |
123 | VERSION_ID="%{distversion}" | |
124 | PRETTY_NAME="PLD Linux %{distversion} (%{distname})" | |
125 | ANSI_COLOR="0;32" | |
126 | CPE_NAME="%{cpename}" | |
127 | HOME_URL="http://www.pld-linux.org/" | |
128 | BUG_REPORT_URL="http://bugs.pld-linux.org/" | |
129 | EOF | |
130 | ||
131 | %clean | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %files | |
135 | %defattr(644,root,root,755) | |
136 | %{_sysconfdir}/os-release | |
137 | %{_sysconfdir}/pld-release |