Hi,

I have added new macros for handling "lib/" and "control/" Yast subpaths in 
devtools.


For "lib/" subpath you can now write this in Makefile.am:

  ylibdir = @ylibdir@/foo
  ylib_DATA = lib/foo/bar.rb


and in *.spec:

  %dir %{yast_libdir}/foo
  %{yast_libdir}/foo/bar.rb



For "control/" subpath:

Makefile.am:

  control_DATA = foo.xml

(remove the "controldir" specification if present, it's now defined globally
in devtools)

*.spec:

  %dir %{yast_controldir}
  %{yast_controldir}/foo.xml


Note: this requires yast2-devtools >= 3.1.15, update the dependencies 
accordingly

You can check these pull requests, if you want to see some examples:
https://github.com/yast/yast-network/pull/143/files
https://github.com/yast/yast-network/pull/144/files


--

Ladislav Slezák
Appliance department / YaST Developer
Lihovarská 1060/12
190 00 Prague 9 / Czech Republic
tel: +420 284 028 960
[email protected]
SUSE
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to