Kevin Kofler 5635246
%global snapdate 20141119
Kevin Kofler 5635246
%global snaphash 01c3244396f3510467f405719ce7ec17403d2d83
Kevin Kofler e9ec4ff
%global partitionmanagerhash 3f1ace00592088a920f731acb1e42417f71f5e62
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
Name:           calamares
Kevin Kofler e9ec4ff
Version:        0
Kevin Kofler 5635246
Release:        0.15.%{snapdate}git%(echo %{snaphash} | cut -c -13)%{?dist}
Kevin Kofler e9ec4ff
Summary:        Installer from a live CD/DVD/USB to disk
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
License:        GPLv3+
Kevin Kofler e9ec4ff
URL:            http://calamares.github.io/
Kevin Kofler e9ec4ff
Source0:        https://github.com/calamares/calamares/archive/%{snaphash}/calamares-%{snaphash}.tar.gz
Kevin Kofler e9ec4ff
Source1:        https://github.com/calamares/partitionmanager/archive/%{partitionmanagerhash}/calamares-partitionmanager-%{partitionmanagerhash}.tar.gz
Kevin Kofler e9ec4ff
# documentation file describing how to rebrand Calamares
Kevin Kofler e9ec4ff
Source2:        README.branding
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
# adjust some default settings (default shipped .conf files)
Kevin Kofler 0231205
Patch0:         calamares-default-settings.patch
Kevin Kofler e9ec4ff
# .desktop file customizations and fixes (e.g. don't use nonexistent Icon=)
Kevin Kofler 0231205
Patch1:         calamares-desktop-file.patch
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
BuildRequires:  kf5-rpm-macros
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
BuildRequires:  cmake >= 2.8.12
Kevin Kofler e9ec4ff
BuildRequires:  extra-cmake-modules >= 0.0.13
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
BuildRequires:  qt5-qtbase-devel >= 5.3
Kevin Kofler e9ec4ff
BuildRequires:  qt5-qtsvg-devel >= 5.3
Kevin Kofler e9ec4ff
BuildRequires:  qt5-qttools-devel >= 5.3
Kevin Kofler e9ec4ff
BuildRequires:  polkit-qt5-1-devel
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
BuildRequires:  kf5-kconfig-devel
Kevin Kofler e9ec4ff
BuildRequires:  kf5-kcoreaddons-devel
Kevin Kofler e9ec4ff
BuildRequires:  kf5-ki18n-devel
Kevin Kofler e9ec4ff
BuildRequires:  kf5-solid-devel
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
BuildRequires:  pkgconfig
Kevin Kofler e9ec4ff
BuildRequires:  gettext
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
BuildRequires:  python3-devel >= 3.3
Kevin Kofler e9ec4ff
BuildRequires:  boost-python3-devel >= 1.55.0
Kevin Kofler e9ec4ff
%global __python %{__python3}
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
BuildRequires:  yaml-cpp-devel >= 0.5.1
Kevin Kofler e9ec4ff
BuildRequires:  libblkid-devel
Kevin Kofler e9ec4ff
BuildRequires:  libatasmart-devel
Kevin Kofler e9ec4ff
BuildRequires:  parted-devel
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
BuildRequires:  desktop-file-utils
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
Requires:       coreutils
Kevin Kofler e9ec4ff
Requires:       util-linux
Kevin Kofler e9ec4ff
Requires:       sddm
Kevin Kofler e9ec4ff
Requires:       dracut
Kevin Kofler e9ec4ff
Requires:       grub2
Kevin Kofler e9ec4ff
Requires:       console-setup
Kevin Kofler e9ec4ff
Requires:       xorg-x11-xkb-utils
Kevin Kofler e9ec4ff
Requires:       NetworkManager
Kevin Kofler e9ec4ff
Requires:       os-prober
Kevin Kofler e9ec4ff
Requires:       e2fsprogs
Kevin Kofler e9ec4ff
Requires:       dosfstools
Kevin Kofler e9ec4ff
Requires:       ntfsprogs
Kevin Kofler e9ec4ff
Requires:       gawk
Kevin Kofler e9ec4ff
Requires:       systemd
Kevin Kofler e9ec4ff
Requires:       rsync
Kevin Kofler e9ec4ff
Requires:       shadow-utils
Kevin Kofler e9ec4ff
Requires:       polkit
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
%description
Kevin Kofler e9ec4ff
Calamares is a distribution-independent installer framework, designed to install
Kevin Kofler e9ec4ff
from a live CD/DVD/USB environment to a hard disk. It includes a graphical
Kevin Kofler e9ec4ff
installation program based on Qt 5. This package includes the Calamares
Kevin Kofler e9ec4ff
framework and the required configuration files to produce a working replacement
Kevin Kofler e9ec4ff
for Anaconda's liveinst.
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
%package        libs
Kevin Kofler e9ec4ff
Summary:        Calamares runtime libraries
Kevin Kofler e9ec4ff
Requires:       %{name} = %{version}-%{release}
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
%description    libs
Kevin Kofler e9ec4ff
%{summary}.
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
%package        devel
Kevin Kofler e9ec4ff
Summary:        Development files for %{name}
Kevin Kofler e9ec4ff
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
Kevin Kofler e9ec4ff
Requires:       cmake
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
%description    devel
Kevin Kofler e9ec4ff
The %{name}-devel package contains libraries and header files for
Kevin Kofler e9ec4ff
developing custom modules for Calamares.
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
%prep
Kevin Kofler e9ec4ff
%setup -q -n %{name}-%{snaphash} -a 1
Kevin Kofler e9ec4ff
rmdir src/modules/partition/partitionmanager
Kevin Kofler e9ec4ff
mv -f partitionmanager-%{partitionmanagerhash} src/modules/partition/partitionmanager
Kevin Kofler e9ec4ff
cp -pf %{SOURCE2} .
Kevin Kofler 0231205
%patch0 -p1 -b .default-settings
Kevin Kofler 0231205
%patch1 -p1 -b .desktop-file
Kevin Kofler e9ec4ff
# delete backup files so they don't get installed
Kevin Kofler e9ec4ff
rm -f src/modules/*/*.conf.default-settings
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
%build
Kevin Kofler e9ec4ff
mkdir -p %{_target_platform}
Kevin Kofler e9ec4ff
pushd %{_target_platform}
Kevin Kofler e9ec4ff
%{cmake_kf5} -DWITH_PARTITIONMANAGER:BOOL="ON" -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" ..
Kevin Kofler e9ec4ff
popd
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
make %{?_smp_mflags} -C %{_target_platform}
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
%install
Kevin Kofler e9ec4ff
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
Kevin Kofler e9ec4ff
# own the local settings directories
Kevin Kofler e9ec4ff
mkdir -p %{buildroot}%{_sysconfdir}/calamares/modules
Kevin Kofler e9ec4ff
mkdir -p %{buildroot}%{_sysconfdir}/calamares/branding
Kevin Kofler e9ec4ff
Kevin Kofler 0231205
%check
Kevin Kofler e9ec4ff
# validate the .desktop file
Kevin Kofler e9ec4ff
desktop-file-validate %{buildroot}%{_datadir}/applications/calamares.desktop
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
%files
Kevin Kofler e9ec4ff
%doc LICENSE AUTHORS README.branding
Kevin Kofler e9ec4ff
%{_bindir}/calamares
Kevin Kofler e9ec4ff
%{_datadir}/calamares/
Kevin Kofler e9ec4ff
%{_datadir}/applications/calamares.desktop
Kevin Kofler e9ec4ff
%{_datadir}/polkit-1/actions/com.github.calamares.calamares.policy
Kevin Kofler e9ec4ff
%{_sysconfdir}/calamares/
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
%post libs -p /sbin/ldconfig
Kevin Kofler e9ec4ff
%postun libs -p /sbin/ldconfig
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
%files libs
Kevin Kofler e9ec4ff
%{_libdir}/libcalamares.so.*
Kevin Kofler e9ec4ff
%{_libdir}/libcalamaresui.so.*
Kevin Kofler e9ec4ff
# unversioned library
Kevin Kofler e9ec4ff
%{_libdir}/libcalapm.so
Kevin Kofler e9ec4ff
%{_libdir}/calamares/
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
%files devel
Kevin Kofler e9ec4ff
%{_includedir}/libcalamares/
Kevin Kofler e9ec4ff
%{_libdir}/libcalamares.so
Kevin Kofler e9ec4ff
%{_libdir}/libcalamaresui.so
Kevin Kofler e9ec4ff
%{_libdir}/cmake/Calamares/
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
%changelog
Kevin Kofler 5635246
* Thu Nov 20 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0-0.15.20141119git01c3244396f35
Kevin Kofler 5635246
- New snapshot, creates /etc/default/grub if missing (calamares#128)
Kevin Kofler 5635246
- README.branding: Mention new bootloaderEntryName setting
Kevin Kofler 5635246
- Remove no longer needed workaround that wrote /etc/default/grub in %%post
Kevin Kofler 5635246
Kevin Kofler f5afd25
* Tue Nov 18 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0-0.14.20141117gitdf47842fc7a03
Kevin Kofler f5afd25
- New snapshot, makes Python modules get branding information from branding.desc
Kevin Kofler f5afd25
- README.branding: Update with the resulting simplified instructions
Kevin Kofler f5afd25
Kevin Kofler 0231205
* Sat Nov 15 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0-0.13.20141115git6b2ccfb442def
Kevin Kofler 0231205
- New snapshot, adds retranslation support to more modules, fixes writing
Kevin Kofler 0231205
  /etc/hosts, writes /etc/locale.conf (always LANG=en_US.UTF-8 for now)
Kevin Kofler 0231205
- Drop grub2-tools (calamares#123) patch, names made configurable upstream
Kevin Kofler 0231205
- Update default-settings patch to set the grub2 names and handle new modules
Kevin Kofler 0231205
- Drop workaround recreating calamares/libcalamares.so symlink, fixed upstream
Kevin Kofler 0231205
- Move desktop-file-validate call to %%check
Kevin Kofler 0231205
Kevin Kofler e9ec4ff
* Tue Nov 11 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0-0.12.20141111gitfaa77d7f5e656
Kevin Kofler e9ec4ff
- New snapshot, writes keyboard configuration files to the installed system
Kevin Kofler e9ec4ff
  (calamares#31), adds a language selector and dynamic retranslation support
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
* Fri Nov 07 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0-0.11.20141107gitfd5d1935290d9
Kevin Kofler e9ec4ff
- New snapshot, fixes the calamares#132 fix again, fixes enabling translations
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
* Thu Nov 06 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0-0.10.20141106git1df44eddba572
Kevin Kofler e9ec4ff
- New snapshot, fixes the calamares#132 fix, calamares#124 (colors in build.log)
Kevin Kofler e9ec4ff
- Drop pkexec policy rename from desktop-file patch, fixed upstream
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
* Wed Nov 05 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0-0.9.20141104gitb9af5b7d544a7
Kevin Kofler e9ec4ff
- New snapshot, creates sddm.conf if missing (calamares#132), adds translations
Kevin Kofler e9ec4ff
- Use and customize the new upstream .desktop file
Kevin Kofler e9ec4ff
- Point URL to the new http://calamares.github.io/ page
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
* Tue Oct 28 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0-0.8.20141028git10ca85338db00
Kevin Kofler e9ec4ff
- New snapshot, fixes FTBFS in Rawhide (Qt 5.4.0 beta) (calamares#125)
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
* Tue Oct 28 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0-0.7.20141027git6a9c9cbaae0a9
Kevin Kofler e9ec4ff
- Add a README.branding documenting how to rebrand Calamares
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
* Mon Oct 27 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0-0.6.20141027git6a9c9cbaae0a9
Kevin Kofler e9ec4ff
- New snapshot, device-source patch (calamares#127) upstreamed
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
* Thu Oct 23 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0-0.5.20141020git89fe455163c62
Kevin Kofler e9ec4ff
- Disable startup notification, does not work properly with pkexec
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
* Wed Oct 22 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0-0.4.20141020git89fe455163c62
Kevin Kofler e9ec4ff
- Add a .desktop file that live kickstarts can use to show a menu entry or icon
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
* Mon Oct 20 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0-0.3.20141020git89fe455163c62
Kevin Kofler e9ec4ff
- New snapshot, fixes escape sequences in g++ diagnostics in the build.log
Kevin Kofler e9ec4ff
- Allow using devices as sources for unpackfs, fixes failure to install
Kevin Kofler e9ec4ff
- Write /etc/default/grub in %%post if missing, fixes another install failure
Kevin Kofler e9ec4ff
- Fix the path to grub.cfg, fixes another install failure
Kevin Kofler e9ec4ff
- Own /etc/calamares/branding/
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
* Mon Oct 20 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0-0.2.20141017git8a623cc1181e9
Kevin Kofler e9ec4ff
- Pass -DWITH_PARTITIONMANAGER:BOOL="ON"
Kevin Kofler e9ec4ff
- Pass -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo"
Kevin Kofler e9ec4ff
- Remove unnecessary Requires: kf5-filesystem
Kevin Kofler e9ec4ff
Kevin Kofler e9ec4ff
* Mon Oct 20 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0-0.1.20141017git8a623cc1181e9
Kevin Kofler e9ec4ff
- Initial package