bump product version to 6.3.0.0.beta1
[LibreOffice.git] / sysui / CustomTarget_rpm.mk
bloba76b4161e2af20bed22863c9c96ea3f136248a7e
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 include $(SRCDIR)/sysui/productlist.mk
12 rpm_WORKDIR := $(call gb_CustomTarget_get_workdir,sysui/rpm)
13 rpm_SRCDIR := $(SRCDIR)/sysui/desktop
15 RPMDISTROS := freedesktop
17 define rpm_register_target
18 $(call gb_CustomTarget_get_target,sysui/rpm): $(rpm_WORKDIR)/$(1)/$(1)$(PKGVERSIONSHORT)-$(2)-menus-$(PKGVERSION)-$(LIBO_VERSION_PATCH).noarch.rpm
20 $(rpm_WORKDIR)/$(1)-desktop-integration.tar.gz: $(rpm_WORKDIR)/$(1)/$(1)$(PKGVERSIONSHORT)-$(2)-menus-$(PKGVERSION)-$(LIBO_VERSION_PATCH).noarch.rpm
21 $(rpm_WORKDIR)/$(1)/$(1)$(PKGVERSIONSHORT)-$(2)-menus-$(PKGVERSION)-$(LIBO_VERSION_PATCH).noarch.rpm : \
22 $(rpm_SRCDIR)/$(2)/$(2)-menus.spec \
23 $(call gb_CustomTarget_get_workdir,sysui/share)/$(1)/create_tree.sh \
24 | $(rpm_WORKDIR)/$(1)/.dir
25 $(call gb_Helper_print_on_error,\
26 $(RPM) -bb $$< \
27 --buildroot $(rpm_WORKDIR)/$(1)/$(2) \
28 --define "_builddir $(call gb_CustomTarget_get_workdir,sysui/share)/$(1)" \
29 --define "_rpmdir $(rpm_WORKDIR)/$(1)" \
30 --define "_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" \
31 --define "productname $(PRODUCTNAME.$(1))" \
32 --define "pkgprefix $(1)$(PKGVERSIONSHORT)" \
33 --define "unixfilename $(UNIXFILENAME.$(1))" \
34 --define "productversion $(PRODUCTVERSION)" \
35 --define "iconprefix $(UNIXFILENAME.$(1))" \
36 --define "version $(PKGVERSION)" \
37 --define "release $(LIBO_VERSION_PATCH)" \
38 --define "__debug_install_post %nil" \
39 , $$@.log \
41 endef
43 $(eval $(call gb_CustomTarget_CustomTarget,sysui/rpm))
46 $(foreach product,$(PRODUCTLIST),\
47 $(foreach distro,$(RPMDISTROS),\
48 $(eval $(call rpm_register_target,$(product),$(distro)))))
51 $(eval $(call gb_CustomTarget_register_targets,sysui/rpm,\
52 $(foreach product,$(PRODUCTLIST),\
53 $(product)-desktop-integration.tar.gz) \
56 $(rpm_WORKDIR)/%-desktop-integration.tar.gz:
57 fakeroot $(GNUTAR) -C $(rpm_WORKDIR)/$* -cf - $(foreach distro,$(RPMDISTROS),$*$(PKGVERSIONSHORT)-$(distro)-menus-$(PKGVERSION)-$(LIBO_VERSION_PATCH).noarch.rpm) | gzip > $@
59 # vim: set noet sw=4 ts=4: